Splash Screen In Visual Studio .net 2005
I wanted to know how do i make the splash screen only show for a few seconds....I can get the splashscreen to display but it seems it will not let me add a timer so i can set how long i want it to show before it calls the exit method......If i should use a Thread to do it can someone give me an example on how to get it done....thanks!!!!

Splash Screen In Visual Studio .net 2005
remedios_
The first example does not seem to change the results that I had before which is the splash screen loads and does nothing elese....
I am using Visual Studio .Net 2005 and when i write the code within the splash screen the Timer1 does not show up in the intellisense...And i can not add the Timer component to the splash screen.....Any other idea's on how to get this to work or maybe a lil bit more on how i should use these examples because niethier one change the results....Thanks!
DaPosh
It'll stay on the screen a defined number of seconds after your application is loaded.
This question has been answered numerous times. Here's the first hit at searching (the answer is correct): http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=120141&SiteID=1
Specifically, you set the delay time that you want the splash screen to remain after the application has loaded.
edit: it will stay until the application has loaded. If you want it to go away sooner (why, I don't know), then have your application load faster. Hint: the main form needs to load quicker.
jfkrueger119584
Fabien Masson
Does the built in splash screen not do what you want
EntitySpaces
There are several ways to perform the actions which you want...(a timed splash screen)...this is just one method...you could do something very similiar with a timer in the actual splashform
Public Class Form1 Dim f As SplashScreen Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Me.Timer1.Enabled = False Me.Timer1.Interval = 15000 ' 15 seconds f = New SplashScreen f.Show()
Me.Timer1.Enabled = True End Sub Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick If Not IsNothing(f) Then f.Close()
Me.Timer1.Enabled = False End If End Sub
End Class
Public Class SplashScreen Private Sub SplashScreen_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Me.Timer1.Interval = 15000
Me.Timer1.Enabled = True End Sub Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick Me.Close()
End Sub
End Class
Those are either or code blocks.....don't try and use both simultaneously