|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
do eventHi
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 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
Show quote
Hide quote
"a" <a@mail.com> wrote in message VB6: DoEventsnews:%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 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. Or, in classmodules (no application and no windowsforms reference):
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Doevents Dick Grier wrote: Show quoteHide quote > Application.DoEvents() >
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 > >
How to use this service ??? WSDL available
Writing text to file How to dynamically instantiate a base calss (w/ args to constructor?) Listview deselect all Crystal Reports for .NET 2005 secuity issue with terminal services connection? Date/Time problem VB6 to VB.Net ActiveX Document DLL (VBD) Inquiry... No equivalent control Getting Data out of MS Project rgb colors in vb.net |
|||||||||||||||||||||||