Automaticly closing form

I want that a form will close automaticly after 20 seconds .
How can I do this?
Inga_dushaAsked:
Who is Participating?
 
gencrossConnect With a Mentor Commented:
Use a timer.  Set the interval to 20000.  In the timer put...

Private Sub Timer1_Timer()
    Unload Form1
End Sub

This should unload your form after 20 seconds
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.