By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,216 Members | 1,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,216 IT Pros & Developers. It's quick & easy.

do event

P: n/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
Aug 30 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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
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

Aug 30 '06 #2

P: n/a
"a" <a@mail.comwrote in message
news:%2****************@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.
Aug 30 '06 #3

P: n/a
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.
Aug 30 '06 #4

P: n/a
http://lab.msdn.microsoft.com/search...%28%29+-forums

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

I thought that there was enough about it.

Cor
"a" <a@mail.comschreef in bericht
news:%2****************@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


Aug 30 '06 #5

P: n/a
Or, in classmodules (no application and no windowsforms reference):

Microsoft.VisualBasic.ApplicationServices.WindowsF ormsApplicationBase.Doevents
Dick Grier wrote:
Application.DoEvents()
Aug 30 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.