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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top