Question[Help]Splashscreen

Posts 1–7 of 7 · Page 1 of 1
[Help]Splashscreen
in my app i added a splash screen

how can i make the splash screen popup before my form1 for about 5 sec then form1 pops up and the splash screen goes away???
I don't think you can change how long it appears for.
But to add it before you program starts up, go to the Solution Explorer.
Then at the top, right click [your programs' name] and select properties.
Then under the "Application" Tab, find the SplashScreen option at the bottom. Then select your spashscreen from the Combo Box.

You're DONE!
Pretty simple to do really using a timer.

Firstly add a timer to the form let's say... Timer1 is it's name.

now add this to the splashscreen load sub.

Code:
    Private Sub SplashScreen1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Timer1.Interval = 5000 'set this to how long you want it to be for
Timer1.Enabled = True

    End Sub
Then for the timer

Code:
       Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Form1.Show()
        Me.Hide()
    End Sub
And you're done!

Hoep that helped.

J-Deezy
I used this in InjectPlz on the Form Load sub:

Code:
Splash.Show()
System.Threading.Thread.Sleep(5000) 'wait for how many ms
Splash.Close()
This works perfectly as the form doesn't show until all events in the Load sub are done.
ok so the interval is in milli seconds
ahahh its so hard to add a timer
No it isn't >.<
Of course it's in milliseconds.
More useful for precise timing.
Hmm...the best way is to change the default time for the splash screen:

To do this goto project settings > application tab > View Application Events as shown in the pic below:



Then add the following code to the startup sub-procedure:

Code:
 Dim seconds As Integer = 5 * 1000
            Application.MinimumSplashScreenDisplayTime = seconds


Hope this helps !!
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us