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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keeping forms up with a time limit and 1 other Q 1

Status
Not open for further replies.

andrewvampire

Programmer
Feb 13, 2001
18
US
I need to know how to like keep a splash screen up for a certain amount of seconds and then make it automaticly switch to the form directed when the time limit as expired.
(Please insert code into your replies)

I also would like to know how to change the color and image of your file-menu (File,Options you know). I would realyy like to know how to do this because that plain old gray file menu doesn't look very good with my program.

Thanks,
J.Conway
 
Hi,
For the splash screen:
1) Put a timer control in your splash form.
2) Set its enabled property to true
3) Set its INTERVAL property to the numbe of seconds to wait. (1000 = 1 second)
4) Make the splash form the form to be loaded in your project.
5) Ib the timer control TIMER event insert this code:

Private Sub Timer1_Timer()
'Form you want to load next.
frmMain.Show
'Unload your splash screen
Unload frmSplash
End Sub

For the colored menu item if you are using the standard menu cotrol then you will have to to API for some methods.

Have a good one!
BK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top