Results 1 to 3 of 3

Thread: Making A Form Close Auto After 3 Seconds...

  1. #1

    Thread Starter
    Hyperactive Member dflw's Avatar
    Join Date
    Apr 2001
    Location
    ct, usa
    Posts
    412

    Making A Form Close Auto After 3 Seconds...

    hello,

    is there anyway that I can make a form load and then close automatically after 3 seconds?
    Visual Basic 6, HTML, JavaScript, learning C++

  2. #2
    New Member
    Join Date
    Apr 2001
    Posts
    3
    Slap a timer control on the form, set the interval to 3000 and put
    Code:
    Unload Me
    in the Timer event.

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Add a timer and set its Interval property to 3000 and add this code in the Timer event.
    Code:
    Private Sub Timer1_Timer()
        Timer1.Enabled = False
        Unload Me
    End Sub
    Best regards

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