如何在文本框上打字时专注于按钮
how to focus on button while typing on text box
**如果我有一个文本框和一个 button.if 我在文本框中输入了一个字母,那么控件必须自动聚焦在 button.so 上,当我点击输入代码时该按钮将执行 **
I tried button1.focus();// in text box but it transfering the control to button so that I cant able to type in text box.
1.Select 按钮所在的窗体。
2.In 属性 window,将窗体的 AcceptButton 属性 设置为按钮控件的名称。
**如果我有一个文本框和一个 button.if 我在文本框中输入了一个字母,那么控件必须自动聚焦在 button.so 上,当我点击输入代码时该按钮将执行 **
I tried button1.focus();// in text box but it transfering the control to button so that I cant able to type in text box.
1.Select 按钮所在的窗体。 2.In 属性 window,将窗体的 AcceptButton 属性 设置为按钮控件的名称。