Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Splash Screen Timer

Status
Not open for further replies.

hankins1984

IS-IT--Management
Mar 11, 2002
198
0
0
GB
Does anyone know how to use the timer so that a splash screen displays for 5 seconds Matthew Hankins

Network Technicain @ DGI Hereford
 
Dear Matthew Hankins

Set the timer interval say 5 seconds(5000)
Timer1.Interval = 5000
You can set this in design time.

'In the following event unload the form
Private Sub Timer1_Timer()
Unload Me
End Sub

Rajesh
 
Start a new project and add a command button to the form, and then add a splash screen form and place a Timer control on the splash screen with an interval of 5000 then drop in this code in the main form

Private Sub Command1_Click()
frmSplash.Show
End Sub

and add this code to the splash screen

Private Sub Timer1_Timer()
Unload Me
End Sub

Hope this helps.



If you choose to battle wits with the witless be prepared to lose.
[machinegun][hammer]
 
Thanx boys the help was grate Matthew Hankins

Network Technicain @ DGI Hereford
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top