I want to upgrade/migrate (Target Framework 4.0) VB6 projects which contain more than 100,000 LOC (VB Group). I need your valuable feedback to whether I upgrade/migrate the code or write a newer application in .net. The VB6 application includes many third party controls/components.
Well basically, Visual Basic DoEvents() is a method that is called to give the processor a chance to do something else (like handle key strokes, or refresh your form). You don't usually need to use the DoEvents() method.
An a good example of when you would want to use the DoEvents() method is when you are reading in a large file. If you don't use the DoEvents() method, your program can just lock up until processing is done, which could be a 15 seconds, or could be 5 minutes or more. Here's an example of that:
'Path to a file
Dim path As String = "C:\Temp\MyFile.txt"
'Open file for reading
Using reader As New IO.StreamReader(path)
' stores the line being read in
Dim inLine As String = String.Empty
'read the file in
Do While reader.EndOfStream = False
inLine = reader.ReadLine()
End Using ' reader
If you still don't fully understand how it works, then do this: Add a button to a form, and double-click on it to go to the code window. Enter this code in Button's Click event, then start the program and click the button to see what happens.
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
¿have you solved the issue from converting the easy datareport generator to vb.net?
I've a lot of datareport without dataenvironment (I use disconnected records, customizable SELECT's, etc.)
Crystal Reports included is hard to use to me and I think it doesn't have the features I need.
¿Are there any class, or method for easy converting my custom datareports for some of the vb.net (.NET 2.0) things?
Last Visit: 31-Dec-99 19:00 Last Update: 24-Jan-15 20:15