G
Guest
HI,
I need to have a blinking battery in my application. I thought timer is the
best way to make that...
My problem is that my timer is disabled when my application starts and when
timBattBlink_Tick never executes eventhoug I changed enabled = true...
Any ideas why this is happining??
Private Sub shutDown(ByVal instState As String)
If instState = "wait for shutdown" Then
Me.picBattery.Visible = True
timBattBlink.Interval = 500
timBattBlink.Enabled = True
Else
Me.picBattery.Visible = False
timBattBlink.Enabled = False
End If
End Sub
Public Sub timBattBlink_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles timBattBlink.Tick
If Me.picBattery.Visible = True Then
Me.picBattery.Visible = False
Else
Me.picBattery.Visible = True
End If
End Sub
I need to have a blinking battery in my application. I thought timer is the
best way to make that...
My problem is that my timer is disabled when my application starts and when
timBattBlink_Tick never executes eventhoug I changed enabled = true...
Any ideas why this is happining??
Private Sub shutDown(ByVal instState As String)
If instState = "wait for shutdown" Then
Me.picBattery.Visible = True
timBattBlink.Interval = 500
timBattBlink.Enabled = True
Else
Me.picBattery.Visible = False
timBattBlink.Enabled = False
End If
End Sub
Public Sub timBattBlink_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles timBattBlink.Tick
If Me.picBattery.Visible = True Then
Me.picBattery.Visible = False
Else
Me.picBattery.Visible = True
End If
End Sub