|
-
October 18th, 2001, 06:54 PM
#1
Timer?
is there anyway to make a screen appear for a length of time then disappear without input from the user?
-
October 18th, 2001, 08:04 PM
#2
Re: Timer?
place a timer in the form and set the time length then unload the form (or hide it)
-
October 18th, 2001, 08:17 PM
#3
Re: Timer?
can you give me a code example? i have not been able to get a timer to work
-
October 18th, 2001, 08:25 PM
#4
Re: Timer?
Very simple sample.
Start a new project. Add a timer (Timer1)
Paste this code into the general declarations section of the form
Run the project. The form will appear. In 5 seconds it will unload itself.
option Explicit
private Sub Form_Load()
Timer1.Interval = 5000 ' set interval for 5 seconds
Timer1.Enabled = true ' start the timer
End Sub
private Sub Timer1_Timer()
Unload me ' timer has expired. unload this form
End Sub
John G
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|