Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, _
ByVal keyData As System.Windows.Forms.Keys) As Boolean
If keyData = Keys.Enter Then
Me.Parent.GetNextControl(Me, True).Focus()
Me.SelectionLength = 0
End If
Return MyBase.ProcessCmdKey(msg, keyData)
End Function
|