Results 1 to 2 of 2

Thread: Freeze my APP

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    208

    Lightbulb

    How can I freeze my application for X millisecond ??
    not all the computer but only the application for a very short lap of time ..

  2. #2
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    Try using the Sleep API. It will only affect your program, an will let you basically suspend it for x number of milliseconds.

    Code:
    'usage:
    Private Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)
    
    Private sub Form_Load()
       Call Sleep(5000)    'sleep 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