Results 1 to 4 of 4

Thread: Getting vb.net to wait a certain number of milliseconds

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    56

    Getting vb.net to wait a certain number of milliseconds

    Is there any way to get vb.net to wait a certain amount of time before executing the next instruction?

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    Try the Sleep method of the Thread class.
    VB Code:
    1. System.Threading.Thread.Sleep ' time in milliseconds
    2. '// eg: System.Threading.Thread.Sleep(10)
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3
    Add a timer control, then when it reaches the desired time, reference the next bit of code.

    Is this what you're looking for?

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    56
    What about the same thing in vb6?

    EDIT: nevermind. found it
    Last edited by brian728s; Jun 24th, 2003 at 04:31 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width