do event

  • Thread starter Thread starter a
  • Start date Start date
A

a

Hi
In VB6, if we need a loop to wait something from the OS, like a signal from
internet, we need to pass the token to the token inside the loop.
For example,
while(1)
doevent
if (flag ==1) then
'do something
end if
End while
Do we have the same "do event" for .NET?
I just cannot find the do event or doevent in the reference web page.
Thanks
 
Hello a,

That's because it's not called doevent.. it is DoEvents. A quick MSDN or
google search will reveal all you need.

-Boo
 
a said:
Hi
In VB6, if we need a loop to wait something from the OS, like a signal
from
internet, we need to pass the token to the token inside the loop.
For example,
while(1)
doevent
if (flag ==1) then
'do something
end if
End while
Do we have the same "do event" for .NET?
I just cannot find the do event or doevent in the reference web page.
Thanks

VB6: DoEvents
VB.NET: Application.DoEvents()

Cheers.
 
Application.DoEvents()

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
Back
Top