If you want the ENTER key to activate a particular button, you can derive a class from TextBox and provide event-handler code for ENTER when the KeyPress event occurs.

  • 如果希望使用Enter键激活特殊的按钮,可从TextBox派生一个类,并在发生KeyPress事件时为Enter提供事件处理程序代码。
目录 查词历史