VB Code:
'form1 as startup object
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim f As New Form2()
f.ShowDialog()
End Sub
'form2 has opacity 0
'set timer1.enabled = true
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Me.Opacity += 0.01
If Me.Opacity = 1 Then
Timer1.Stop()
Timer2.Start()
End If
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Me.Opacity -= 0.01
If Me.Opacity = 0 Then
Close()
End If
End Sub
i hope i don't provide the wrong code.