do event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • a

    #1

    do event

    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


  • GhostInAK

    #2
    Re: do event

    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

    Comment

    • Greg

      #3
      Re: do event

      "a" <a@mail.comwrot e in message
      news:%23HS$HA$y GHA.3908@TK2MSF TNGP05.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.DoE vents()

      Cheers.


      Comment

      • Dick Grier

        #4
        Re: do event

        Application.DoE vents()

        --
        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.


        Comment

        • Cor Ligthert [MVP]

          #5
          Re: do event



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

          I thought that there was enough about it.

          Cor


          "a" <a@mail.comschr eef in bericht
          news:%23HS$HA$y GHA.3908@TK2MSF TNGP05.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
          >
          >

          Comment

          • Theo Verweij

            #6
            Re: do event

            Or, in classmodules (no application and no windowsforms reference):

            Microsoft.Visua lBasic.Applicat ionServices.Win dowsFormsApplic ationBase.Doeve nts


            Dick Grier wrote:
            Application.DoE vents()
            >

            Comment

            Working...