Hi,
Basically, what I'm trying to do is that once the user has entered player names into two seperate text boxes, the user will then click the "Play" Button, this button will then change it's text to say "Quit". How would I go about doing so that once the button has been pressed again, that now says quit, it clears the player name text boxes?
This is what I have so far:
Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click
If (TextBox1.Text.Length < 0) Or (TextBox2.Text.Length < 0) Then
MsgBox("You must enter a Name for Player 1")
MsgBox("You must enter a Name for Player 2")
ElseIf (TextBox1.Text.Length > 0) Or (TextBox2.Text.Length > 0) Then
Button10.Text = "Quit"
Me.Button10.BackColor = Color.Red
End If
As you can see, it's not very far. ^_^ I just can't figure out how to do this.
Thanks,
Chris