I was looking how to flash a form to alert the user when i came across the following code. Thought it could look good with a little modification. However, when i run the code in the IDE it works perfectly (alternating the icon in the taskbar), but running from the compiled .exe then the icon does not change, static! Any ideas as this has me beat...
VB.NET:
Private Sub tmrAlert_Tick(...) Handles tmrAlert.Tick
Static a As Boolean
'------------------
a = Not a
If a = True Then
Me.Icon = My.Resources.events
Else
Me.Icon = My.Resources.warning
End If
End Sub