Sub Grade_Click
Dim b As Button
b = Sender
b.tag = b.tag + 1
If b.tag > 5 Then b.tag = 1
Select b.tag
Case 1
ButtonBackGrd(Colors.Red, "F")
Case 2
ButtonBackGrd(Colors.Green, "S")
Case 3
ButtonBackGrd(Colors.Yellow, "C")
Case 4
ButtonBackGrd(Colors.Blue, "D")
Case 5
ButtonBackGrd(Colors.Gray, "-")
End Select
End Sub
Sub ButtonBackGrd(bc As Int, txt As String)
Button1.Color = bc
Button1.Text = txt
End Sub