主题:textbox的焦点
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If (TextBox1.Focused) Then TextBox1.Text = "1"
If (TextBox2.Focused) Then TextBox2.Text = "1"
End Sub
为什么点击按钮时,焦点会在Button1上,而点击Button之前,光标明明在TextBox1上呀。
请高手指点,谢谢
If (TextBox1.Focused) Then TextBox1.Text = "1"
If (TextBox2.Focused) Then TextBox2.Text = "1"
End Sub
为什么点击按钮时,焦点会在Button1上,而点击Button之前,光标明明在TextBox1上呀。
请高手指点,谢谢