Buy Now

Wednesday, May 6, 2009

Create a splash screen

By adding a splash screen on your application, it will give more professional look to the application that we've created. In this tutorial, I'm going to use Visual Basic.NET 2005 as the development tool to create the splash screen.

1. Open Visual Studio.NET 2005 and create a new Project
2. Change the name of the form from form1 > F_Splash
3. Change the properties from F_Splash with the attributes below :

  • BackColor - White
  • FormBorderStyle - FixedToolWindow
  • Text - (empty)
  • Name - F_Splash
  • StartPosition - CenterScreen
  • ControlBox - False
  • ShowInTaskbar - False
4. After changing the properties to the form, add control into it :
  • Label - 2
  • ProgressBar - 1
  • PictureBox - 1
5. Rearrange the controls until it look like this :



6.In ProgressBar Property, change the attribute Enabled = True
7. After finish designing the look of the splash screen, add component timer to the F_Splash, and change it name to Splash_Timer
8. Double click the component Splash_Timer and add these code into it:

Private Sub Splash_Timer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Splash_Timer.Tick
ProgressBar1.Value += 4

If ProgressBar1.Value = 100 Then

Splash_Timer.Dispose()

Me.Visible = False

F_Menu.Show()

End If

End Sub

Reference :
http://www.ilmukomputer.com
http://junindar.blog.com

Source Code :
4shared : SplashScreen.zip
Rapidshare : SplashScreen.zip

0 comments: