Advertising

review www.do11warnet.blogspot.com on alexa.com

Monday, January 23, 2012

Make a Splash Screen [VB]

In this tutorial i will teach you how to make a splash screen for your visual basics applications.

This is how it will work
:
the user will start the program , and the splash will pop up, it will wait 3 seconds and start the program.

Procedure

ok so,
make a new form for your splash screen,
to do this: right click the project explorer>>add>>Form

Put whatever you want on it , eg."Welcome".


Go to properties and set "Border style" to "none" like so..
 next make a timer and 2 labels.

Timer Properties
set the interval to "1000"
make sure it is enabled.


Label Properties


set label1's caption to "Starting in:"

please position both labels beside each other. like so..
now here comes the code....

Use this code for the timer:
Code:
'Kung fu penguin's splash screen
'countdown

If Label2.Caption = "0" Then
Form1.Hide ' hide the splash screen
form2.Show 'show your main program

Else
Label2.Caption = Label2.Caption - 1 ' if it isn't zero then minus one.
End If

and also put this in "Form_Load()"
Code:
Label2.Caption = "3" ' whatever you want to start the countdown from.

Optional Tip
You could also make those two labels transparent so the user cant see the countdown.
to do this ... go to the properties for the label and change "Visible" to "False".

Change Startup Form

If you made the form for your hack first, that will be the thing that starts up first, you want to change it so your splash screen starts up first. To do this simply go to:
Project(located at the top tool bar)>>Project1 Properties ("project 1" is the name of your project) once you have clicked that:

CONCLUSION
thanks for reading my tutorial. Please post any problems you have , and i will be happy to help

if you use my tutorial, please thank me

No comments:

Post a Comment

Your Comment