I added form.show in the code below formwelcome appears then appears form1 but the problem is form1 becomes close
Code:Imports WinFormAnimation Public Class FormWelcome Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick CircularProgressBar1.Value += 1 CircularProgressBar1.Text = CircularProgressBar1.Value.ToString If Me.Opacity < 1 Then Me.Opacity += 0.05 End If If CircularProgressBar1.Value = 100 Then Timer1.Stop() Timer2.Start() End If End Sub Private Sub FormWelcome_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load CircularProgressBar1.Value = 0 Me.Opacity = 0 Timer1.Start() End Sub Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick Me.Opacity -= 0.1 If Me.Opacity = 0 Then Timer2.Stop() Me.Close() End If Form1.Show() >> "I added form.show" End Sub End Class




Reply With Quote
