Warum funktioniert folgender Code nicht?
If Button1.ForeColor = Color.DarkGreen And e.KeyCode = Keys.F1 Then
Button1.ForeColor = Color.Blue
Else
End If
If Button1.ForeColor = Color.Blue And e.KeyCode = Keys.F1 Then
Button1.ForeColor = Color.Yellow
Else
End If
If Button1.ForeColor = Color.DarkGreen And e.KeyCode = Keys.F1 Then
Button1.ForeColor = Color.Blue
Else
End If
If Button1.ForeColor = Color.Blue And e.KeyCode = Keys.F1 Then
Button1.ForeColor = Color.Yellow
Else
End If