Results 1 to 4 of 4

Thread: Wait 5 seconds

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    77

    Red face

    i am back again.
    i have program it lists files and i mad the code that show HScrollbar in listbox but here is my problem, how can i make my HScrollbar to show up 5 Seconds after listing all files. so what i need is my function i am calling it will wait 5 seconds. Help me Thank you.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    Private Declare Function GetTickCount Lib "kernel32" Alias "GetTickCount" () As Long
    
    Private Sub Pause(Interval As Long)
        Start = GetTickCount
        Do While GetTickCount < Start + Interval
            DoEvents
        Loop
    End Sub
    
    'click or whatever event
    Pause 5000    'Pause for 5 seconds
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    77

    Re: <?>

    i try but i get message saying 'Overflow'. i thing what i need is just do loop , which count up to 5 and when it reach 5 it call function.

  4. #4
    Junior Member
    Join Date
    Aug 2000
    Posts
    27
    Code:
    Public Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)
    Sleep 5000

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