this tutorial shows you how to code splash screen for your application with vb 2008.
things you need
splash screen (an image of your choice which you like to see when you open your application)
installed atleast express edition of visual studio
procedure:
step 1:
open visual studio.click on file and choose new project.under visual basic section ,choose empty project and click on ok.
step 2:
under solution explorer,right click on the project and select add>> new item as shown below.
click on splash screen and click add.
step 3
delete the default contents of splash screen by selecting the item and pressing delete button.In the properties section,select background image property and import your splash screen image as shown below.
step 4:
click on toolbox and drag the timer on to the splash screen as shown below.
set the following timer properties.
step 5:
double click on the splash screen to go to code section.
you can safely delete everything under splash screen’s load event.
add the procedure for the timer event just before the end class statement.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Timer1.Stop()
Me.Hide()
Timer1.Enabled = False
Form1.Show() //name of the form which opens after splash screen
End Sub
step 6:
right click on project in solution explorer and select properties.under startup object choose splashscreen as shown in the figure.
how to code simple splash screen for your application with vb 2008
this tutorial shows you how to code splash screen for your application with vb 2008.
things you need
procedure:
step 1:
open visual studio.click on file and choose new project.under visual basic section ,choose empty project and click on ok.
step 2:
under solution explorer,right click on the project and select add>> new item as shown below.
click on splash screen and click add.
step 3
delete the default contents of splash screen by selecting the item and pressing delete button.In the properties section,select background image property and import your splash screen image as shown below.
step 4:
click on toolbox and drag the timer on to the splash screen as shown below.
set the following timer properties.
step 5:
double click on the splash screen to go to code section.
you can safely delete everything under splash screen’s load event.
add the procedure for the timer event just before the end class statement.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Timer1.Stop()
Me.Hide()
Timer1.Enabled = False
Form1.Show() //name of the form which opens after splash screen
End Sub
step 6:
right click on project in solution explorer and select properties.under startup object choose splashscreen as shown in the figure.
step 7:
now build and run the project.