图片:
大家好。我想要一些有关我的代码的帮助。我在做什么是一个1,A和B的按钮,就像键盘电话一样,但是我不明白。如果我单击按钮然后选择A,则必须停止按钮单击,然后下一个字符将是B,它将擦除第一个输入。有什么我想念的吗
Dim Button1_Stage As Integer
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Select Case Button1_Stage
Case 0
Textbox11.text = "1"
Button1_Stage += 1
Case 1
Textbox.text = "A"
Button1_Stage += 1
Case 2
Textbox1.tecxt = "B"
Button1_Stage += 1
Case 3
Button1_Stage = 0
End Select
End Sub
感谢任何会提供帮助的人