Answer Questions
HaraldS fatal bug: form designer generated event handler routines get disconnected all of the sudden
Hello, in VB 2005 Express beta 2 all my form designer generated event handler routines get disconnected all of the sudden all the time (Handles keyword disappears!). I did quite a lot work with all three major VS 2005 languages very successfully because I don't want to miss all the great new features but this is definitive a issue. My form was quite big and I did not realize early enough to recover it. I hope there is a workaround. Regards, st ...Show All
Jim Griesmer Pausing program until automation finishes
I am writing a VB 2003 application that reads a text file with bookmark labels and merges them in Word using automation. It then pronts the merged document. Everything works fine but this is a realtime application in that it looks for any unprocessed text file and if it finds one it starts processing it. My problme is that sometimes the Word merge and pront sometime take so long that the program starts processing other files before Word has comp ...Show All
dvohra Date Time Picker
Im using two datetimepicker's. I need to calculate the amount of weekdays and weekends. (that a car was rented) If (dtpPickUp.Value < dtpReturn.Value) Then 'make sure the calender dates are valid totalDays = ( CInt (dtpReturn.Value.Subtract(dtpPickUp.Value).TotalDays)) For i = 0 To totalDays 'add days to either weekend or weekday If (dtpPickUp.Value.AddDays(i).DayOfWeek = DayOfWeek.Saturday Or _ dtpPickUp.Va ...Show All
John Ericson174499 Disappearing handles clauses
Has anyone had issues with the handles clauses at the end of eventhandler subroutines just disappearing I have a ton of eventhandlers and when this happens it just wipes all my additions to the code base I've been working on out because I have to undo until I get back my missing handle clauses. I see "Designer Generated Code" in the undo list and I know I didn't enact that. It also puts an extra " ,MyBase .Load" or similar on all the assigned fo ...Show All
Shinsoft strongly typed collection wierdness, vb.net 2005
Ok, I'm really stumped, and I'm probably gonna feel like a fool when someone explains it to me. I've created a strongly typed collection in vb.net (all lower case for ease of typing) public class Foo public name as string public line as integer end class public class FooCollection inherits collectionbase public sub Add( byval aFoo as Foo ) ...Show All
FJ978 Execution Engine Error
Has anyone else out there had this error I get it when I exit the application that I wrote. An unhandled exception of type 'System.ExecutionEngineException' occurred in mscorlib.dll According the wise ones in Redmond, this error should never happen. Unfortunately, I am getting about 70% of the time when I close the application. I've found that if I comment out a certain line, the error goes away. Unfortunately, the line is one that I need ...Show All
Scott Taylor deploying .swf file
my application has these 2 procedures: 1. Private Sub btnHelp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Help.ShowHelp(Me, "..\CYM HELP.chm") End Sub 2. Private Sub frmLogin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim pro A ...Show All
princess01 Why do variables defined from a structure require static key word
I converted up from Visual Studio 2003 to Visual Studio 2005 and the tool now reports that all variables defined from a structure definition, when the variable is part of a non-shared function/routine of a class requires the "STATIC" key word in place of the "DIM" key word to avoid the warning: Variable X is used before it has been assigned a value. A null reference exception could result at runtime. Make sure the structur ...Show All
FlatBeach login Form interaction with MDI
I'm having a hard time understanding what the problem is, but I tried your code, and I'm wondering if this is your problem: 1) you have the login form set as the startup form 2) if you use Me.Close in OK_Click, then the app shuts down rather than showing the MDIForm 3) if you use Me.Visible = False (as in your current code), then it works, but when you later close the MDIForm, the application does not stop running, even though no w ...Show All
mark healy Error message ''Library not registered'' when using Masked Edit control (I m using VB2003 with Windows2003)
Hi dear, I m using VB2003 and windows 2003. I add reference to the Masked Edit control through the menu: Projetc --> Add reference --> COM. But when I try to drag the control from my Windows Form Toolbox to the target form, I get the error message: ''Library not registered'' . I did teh ''regsvr32 C:\windows\system32\msmask32.ocx'', but It didn t work Please if you could assist, I appreciate your help, Happy new year. ...Show All
nomad IComparer question
Hi, I am trying to implement sorting on my array list, so I need to implement IComparer interface, where I am having trouble with the "untyped data". Let me explain: dim arr as CustomArrayList arr.add(new clsMyData("some value 1", "another value 1")) arr.add(new clsMyData("some value 2", "another value 2")) arr.add(new clsMyData("some value 3", "another value 3")) If I try to sort this array, everything works fine, ...Show All
unknwn OnClick events for mshtml.HTMLElement
I have a windows application which contains an embedded internet browser. I need to write an event handler for a click event for a specific element on an html event. I've been successful in getting a click event on the html document itself by using the following, which creates the event handler for the document's click event. Private Sub WebBrowser1_DocumentComplete(ByVal sender As Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentComplet ...Show All
Rik78 Exception Handling
For Each subfolder As String In IO.Directory.GetDirectories(root)rootNode.Nodes.Add( Me .GetFolderTree(subfolder)) Next My above routine is part of a recursive routine that loops thru all the folders on a drive. My problem is that some folders are locked and and generate an unauthorizedaccess exception. How can I trap the exception in the loop and execute the "next" statement to look at the next directory. Thanks, Fred H. ...Show All
Mark Paj... Convert centimeters to points.
Hello, How can I convert centimeters to points Now the context of this is probably quite important BUT http://discuss.fogcreek.com/joelonsoftware3/default.asp cmd=show&ixPost=106044&ixReplies=12 Is an interesting article on various measurement conversions. Wich generally come from old lithographer/printer units of measurements Twips, Points and the more common metric units of measurements Centimeters etc.... Genera ...Show All
Ayush It's slow!!!
Hello After I turn on my computer and when I launch first program (which programed by VB2005), it's take a long time to show main form. VB6 was faster. CPU speed: 2600 MHz Memory: 1024 MB Is there a solution for that Thanks & Regards I can't find System.Magic namespace. I use VB2005. 1. Live with it - that's not really a 'lo ...Show All
