Results 1 to 3 of 3

Thread: [RESOLVED]Form close problem... what's wrong...

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    445

    [RESOLVED]Form close problem... what's wrong...

    SplashScreen is my startup form...
    after it show up few second, it close itself and load frmlogin...
    but it will be end the application after the frmlogin show..........

    Code:
            Private Sub SplashScreen1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    
            Me.FormBorderStyle = FormBorderStyle.None
    
            Timer1.Enabled = True
        End Sub
    
    
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            Timer1.Enabled = False
    
            If Me.Opacity > 0 And Me.Opacity <= 1 Then
                Me.Opacity = Me.Opacity - 0.1
                Timer1.Enabled = True
            Else
                Me.Close()
                frmLogin.Show()
            End If
        End Sub
    Last edited by wenight; Aug 26th, 2009 at 03:47 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width