Home All Groups Group Topic Archive Search About
Author
30 Aug 2006 4:51 AM
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

Author
30 Aug 2006 5:06 AM
GhostInAK
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

Show quoteHide quote
> 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
Author
30 Aug 2006 5:41 AM
Greg
Show quote Hide quote
"a" <a@mail.com> wrote in message
news:%23HS$HA$yGHA.3908@TK2MSFTNGP05.phx.gbl...
> 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.
Author
30 Aug 2006 3:28 PM
Dick Grier
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.
Author
30 Aug 2006 7:17 PM
Theo Verweij
Or, in classmodules (no application and no windowsforms reference):

Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Doevents


Dick Grier wrote:
Show quoteHide quote
> Application.DoEvents()
>
Author
30 Aug 2006 3:57 PM
Cor Ligthert [MVP]
http://lab.msdn.microsoft.com/search/refinement.aspx?__VIEWSTATE=&query=Application.DoEvents%28%29+-forums

If you add the forums it will even be much more.

I thought that there was enough about it.

Cor


Show quoteHide quote
"a" <a@mail.com> schreef in bericht
news:%23HS$HA$yGHA.3908@TK2MSFTNGP05.phx.gbl...
> 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
>
>