原文网址:http://jcobra.blog.163.com/blog/static/470493200702733359625/
让Text和Combox接受回车键,自动转移焦点的方法,把下面的这段代码加入到Windows窗体中:
Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean
Select Case Me.ActiveControl.GetType.ToString
Case "System.Windows.Forms.TextBox", "System.Windows.Forms.ComboBox"
If (keyData = Keys.Enter) Then
keyData = Keys.Tab
End If
End Select
Return MyBase.ProcessDialogKey(keyData)
End Function