How to Create a Splash Screen in Visual Basic 6

How to Create a Splash Screen in Visual Basic 6 thumbnail
A splash screen only appears while a program is loading.

A splash screen, an initial screen displayed in a program, only appears for a short period of time while the program is loading and disappears as soon as the application's main window loads. Displayed as soon as the user has successfully logged into the system, a splash screen usually shows the application title, version information, logo and copyright notice. Create a simple splash screen for your Visual Basic 6 program.

Things You'll Need

  • Computer
  • Visual Basic 6 software
Show More

Instructions

    • 1

      Launch Visual Basic 6.

    • 2

      Create a new VB project by selecting "Standard EXE" under the "New Project" dialog box. Click "Open" to start. A new form loads.

    • 3

      Go to the "Properties" window on the right and set the properties for "Form1," as follows:

      Borderstyle = Fixed Dialog
      Caption = ""
      ControlBox = False
      MaxButton = False
      MinButton = False
      StartUpPosition = 2-CenterScreen

    • 4

      Add objects by clicking controls from the "Toolbox" and drawing them into the form one at a time. For example, add a "Frame" control to make a border and "TextBox" controls to write the name of your program, version number, copyright information and other text display you want to place in the form. You can also add an application logo into the splash screen by adding an "Image" control and browsing the corresponding picture file. Lastly, add a "Timer" control into the form as well so you can set how long the splash screen will show up before the program's main window loads. Arrange the controls in a way that is pleasing to the eye.

    • 5

      Click the "Timer" control in your Visual Basic form and set its "Interval" property to the number of seconds you want the splash screen to display. For example, if you want it to show up for 10 seconds, put "1000." If you want 15 seconds, type "15000," and so on.

    • 6

      Press F5 to run your project and see how your splash screen looks during run time.

    • 7

      Stop the program from executing. At this point you can add more forms to your VB project. For example, you may add a login screen and an MDI window for your application. You can add the codes later to check for valid program access before displaying the splash screen. Load the main application window last.

    • 8

      Save your work.

Related Searches:

References

  • Photo Credit Creatas Images/Creatas/Getty Images

Comments

You May Also Like

Related Ads

Featured