Advertisement
ASP_Volume2 Miscellaneous #31641

Making A Splash Screen!!

Load any program and the first thing you see is a splash screen. Splash screens usually display the program's name along with a graphic of some sort, such as a pen for the Microsoft Word splash screen or the company's logo for the Procomm Plus splash screen.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Sub Timer1_Timer ()
 Unload Form1
 Load Form2
 Form2.Show
End Sub
'The above code tells Visual Basic that after the Timer control waits for the time specified by the Interval property, it should unload Form1 (your splash screen) and then load and display Form2 (which contains your 'program's first screen).

Sub Image1_Click ()
 Timer1.Enabled = False
 Unload Form1
 Load Form2
 Form2.Show
End Sub


'Experiment with creating splash screens for all of your programs. Whether you need to use splash screens to give your programs a professional look, or you need a splash screen to fake the illusion of speed for your users, you may find splash screens to be a simple, yet effective way to make your programs more acceptable to the average user.

The above steps are all that you need for a splash screen to disguise the fact that your program takes time to load. However, if your program loads quickly, you can give the user the option of clicking on the splash screen to make it go away, rather than wait a specified amount of time.
To give your splash screens the ability to disappear when the user clicks the mouse, add the following code to the Image1 event procedure stored on Form1

Upload
Original Comments (3)
Recovered from Wayback Machine