Hello, is there anything wrong with the below code? i want to blink
any of the for labels if the back color is LimeGreen.
Timer5 is enabled already and starts at form closing event of another for.
so on the timer tick i have below code.
thanks for your help
Dim time2 As Integer
Private Sub Timer5_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer5.Tick
If (time2 = 1) And Label17.BackColor = Color.LimeGreen Then
Label17.SendToBack()
End If
If (time2 = 2) And Label17.BackColor = Color.LimeGreen Then
Label17.BringToFront()
time1 = 0
End If
If (time2 = 1) And Label18.BackColor = Color.LimeGreen Then
Label18.SendToBack()
End If
If (time2 = 2) And Label18.BackColor = Color.LimeGreen Then
Label18.BringToFront()
time1 = 0
End If
If (time2 = 1) And Label19.BackColor = Color.LimeGreen Then
Label19.SendToBack()
End If
If (time2 = 2) And Label19.BackColor = Color.LimeGreen Then
Label19.BringToFront()
time1 = 0
End If
If (time2 = 1) And Label20.BackColor = Color.LimeGreen Then
Label20.SendToBack()
End If
If (time2 = 2) And Label20.BackColor = Color.LimeGreen Then
Label20.BringToFront()
time1 = 0
End If
time1 += 1
End Sub