title: Winform Splash Screen - VB.NET - Timer
body: <p>I have a splash screen on the application and on that form. I have a timer.</p>
  
  <pre><code>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
  </code></pre>
  
  <p>Interval on the timer is set to 5000.</p>
  
  <pre><code>  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
  </code></pre>
  
  <p>I set breakpoint here but it doesn't seem to hit this breakpoint. I uncommented Me.Refresh()</p>
  
  <p>Splash screen is closing. Then Login is shown with a continue button. When you click continue
  button </p>
  
  <pre><code>MainMenu.Show() 'this form should be shown as this is the main window of the application but it's not showing.
              Me.Close() 'closes login window
  </code></pre>
  
  <p>No window shows up and the application is hanging.
  Any inputs will be greatly appreciated.</p>