Fluoronator
Technical User
I've just installed VB.Net on my box and need a jumpstart... My first program was a simple "Beep()" and it did not work, can't find out why in the doc. Checked it in VB6 to make sure it wasn't my computer, no problems there. Next I was going to toggle the form's backcolor like this...
...Button1.Click...
If Me.BackColor = System.Drawing.Color.Red Then
Me.BackColor = System.Drawing.Color.Green
Else
Me.BackColor = System.Drawing.Color.Red
End If
End Sub
The "if" statement above is incorrect... Why?
...Button1.Click...
If Me.BackColor = System.Drawing.Color.Red Then
Me.BackColor = System.Drawing.Color.Green
Else
Me.BackColor = System.Drawing.Color.Red
End If
End Sub
The "if" statement above is incorrect... Why?