VB.NET equivalent to "classic" VB "DoEvents"

G

Guest

I have VB.NET 2005 Express Edition. Is there a VB.NET equivalent to the
"classic" VB's DoEvents? I searched the VB.NET Help & had no luck. In
"classic" VB, DoEvents was used in code that might lock up the PC. Thank you.
David
 
T

Tom Shelton

pcnerd said:
I have VB.NET 2005 Express Edition. Is there a VB.NET equivalent to the
"classic" VB's DoEvents? I searched the VB.NET Help & had no luck. In
"classic" VB, DoEvents was used in code that might lock up the PC. Thank you.
David

Sure... As long as you have System.Windows.Forms referenced in your
project:

Application.DoEvents

or new in VB.NET 2005

My.Application.DoEvents

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top