[TUT] Fade effect
hi guys in this tut i show you how to make a fade effect
what we need
2 timers
thats all
set opacity to 0%
timer1 interval = 10
timer2 interval = 10
double click on the form and type in
then the code for the 1st timer
then go to the form closing code and type in
and then the code for the 2nd timer
VirusTotal
credits to me
what we need
2 timers
thats all
set opacity to 0%
timer1 interval = 10
timer2 interval = 10
double click on the form and type in
Code:
Timer1.start
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Opacity += 0.03
If Opacity = 100 Then
Timer1.Enabled = False
End If
End Sub
Code:
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Timer2.start
End Sub
Code:
Opacity -= 0.03
If Opacity = 0 Then
End
End If
credits to me

