Results 1 to 2 of 2

Thread: delay

  1. #1
    Guest

    Question

    Hi professionals,

    How to fource VB delay for some miliseconds?

    Thanks.

  2. #2
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    Use the Sleep api

    Code:
    Private Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)
    
    Private sub Form_load()
    
    Sleep 5000 'sleeps for 5 seconds
    
    end sub
    Hope this helps

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