Question : splashscreen

in isde my splash screen i have this code
  Private Sub SplashScreen1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
        System.Threading.Thread.Sleep(5000)
    End Sub

this will delay it for 5 seconds but it never goes in there. can somebody tell me why? i'm using vb.net in vs2008 thanks.

Answer : splashscreen

Try this:
Set up splash screen option on project properties to SplashScreen1 and Startup Form to what you want to open after splash screen.
Then paste the code below to your splash screen.

Private Sub SplashScreen1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Application.DoEvents()
        Me.Show()
        Me.Refresh()
        System.Threading.Thread.Sleep(5000)
       
    End Sub
Random Solutions  
 
programming4us programming4us