Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoEvents in VB.Net does not work 2

Status
Not open for further replies.

bertrandkis

Programmer
Jul 26, 2002
101
ZA
I have a front end application that collect data from a database change the data according to a set of rules and then stores it back to the DB.The application uses loops intesively because every single record must be processed but now the application holds control of the processor and thus prevents the user from doing any other activity.When a new window is opened and closed while the appplication is running the screen does not refresh at all and it looks bad. I tried using the DoEvents statement as in VB6 but .net does not want it.it gives a error.I tried the MSDN library but did not find an equivalent of DoEvents in .net. If you can help with this problem I will appreciate. Thanx.
 
You will want to use threads. I am assuming you want the GUI to appear not "locked up" as the processing is occuring? Do a search for "creating threads" in the IDE's help.
 
Thanks vb5'r.
My knowledge is expanding every day !!!!!!!!!! In case I forget to say "Thank you" I'll say it now - thank you for your help !!!
 
Thanks to all of you for your contributions. I tried the Application.DoEvents and it works fine. Now the user can open other applications, browse the internet while the application is running in the background.
Kis.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top