Home All Groups Group Topic Archive Search About

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

Author
13 Jun 2006 3:08 AM
pcnerd
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

Author
13 Jun 2006 3:36 AM
Tom Shelton
pcnerd wrote:
> 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

--
Tom Shelton [MVP]