Can anyone help me!
I'm trying to force ENTER key to act like TAB key ,but when
my cursor enters combobox and I press ENTER then cursor jumps to third control (instead second)!
Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean
Dim ctl As Control = Me.ActiveControl
If keyData = keyData.Enter Then
MessageBox.Show(keyData) ' keyData is 13 13 when ENTER is pressed on ComboBox
Me.SelectNextControl(ctl, True, True, True, True)
End If
End Function
I'm trying to force ENTER key to act like TAB key ,but when
my cursor enters combobox and I press ENTER then cursor jumps to third control (instead second)!
Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean
Dim ctl As Control = Me.ActiveControl
If keyData = keyData.Enter Then
MessageBox.Show(keyData) ' keyData is 13 13 when ENTER is pressed on ComboBox
Me.SelectNextControl(ctl, True, True, True, True)
End If
End Function