Kuzon
Kuzon

Reputation: 822

How to create a Splash screen for VB.net program

How do i create a Splash Screen for a vb.net program? I want to make a visual that will come up before the programs starts and after it finishes in this possible?

Upvotes: 4

Views: 44224

Answers (3)

Guppy Platy
Guppy Platy

Reputation: 1

improvement of other solution disable Timer before show other form

ProgressBar1.Increment(1)
       If ProgressBar1.value = 100 Then
              Me.hide()
              Timer1.Enabled = False
              form2.Show()
       End IF

Upvotes: 0

audie
audie

Reputation: 91

  1. Open Your vb.net
  2. Add new project
  3. Go to properties of your form
  4. Clear the Text
  5. Set the FormBorderStyle to None.
  6. Insert a background image.
  7. Set the background image to stretch.
  8. Add a ProgressBar, a Timer and a Label to your form.
  9. Go to properties of timer set the Interval into 50 and Enabled to true.
  10. Double click the Timer event.
  11. Populate This Code Inside The Private Sub Timer_Tick;

     ProgressBar1.Increment(1)
           If ProgressBar1.value = 100 Then
                  Me.hide() 
                  form2.Show()
           End IF
    
  12. Increment which mean to increase by 1.
  13. form2.show to show an another form if the ProgressBar was done processing.
  14. In a Label you must rename it whatever you want.

Upvotes: 9

msarchet
msarchet

Reputation: 15242

http://msdn.microsoft.com/en-us/library/bfkbc5a3(v=VS.100).aspx

Basically you set the form that you want to use as a splash screen in the program properties in Visual Studio. Very simple.

Upvotes: 2

Related Questions