Just started coding in
VB.NET and created a small app; click a button and the form changes color. If the form is red it changes to blue; if the form is blue it changes to red.
In the click event I placed this code:
If Me.Backcolor = Color.Red Then
Me.Backcolor = Color.Blue
Else
Me.Backcolor = Color.Red
End If
In the IF statement I'm getting the error:
"Operator '=' not defined for types System.Drawing.Color"
Any help would be appreciated. Many thanks in advance...
Sas :)