I have a splash screen in the application and in this form. I have a timer.
Private Sub Splash_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load SplashTimer.Start() ' Set application title ' Set Version Me.Show() 'Me.Refresh() 'System.Threading.Thread.Sleep(2000) 'Login.ShowDialog() 'Login.AllowTransparency = True End Sub
The timer interval is set to 5000.
Private Sub SplashTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SplashTimer.Tick SplashTimer.Stop() Login.Show() Login.AllowTransparency = True Me.Hide() End Sub
I set a breakpoint here, but it doesn't seem to hit that breakpoint. I uncommented Me.Refresh ()
The screensaver closes. Then Login is displayed with a continue button. When you click the continue button
MainMenu.Show() 'this form should be shown as this is the main window of the application but it not showing. Me.Close() 'closes login window
The window does not appear and the application hangs. Any inputs would be greatly appreciated.
kalls
source share