michelleHEC
Programmer
my code to have an enter key work as a tab key worked at first but now it will not work. has anyone any ideas? here is the code.
Protected Overrides Sub OnKeyDown(ByVal e As System.Windows.Forms.KeyEventArgs)
Dim ctl As Control = Me.ActiveControl
If TypeOf ctl Is TextBox And e.KeyValue = Keys.Enter Then
Me.SelectNextControl(ctl, True, True, True, True)
e.Handled = True
End If
End Sub
thanks,
Michelle
Protected Overrides Sub OnKeyDown(ByVal e As System.Windows.Forms.KeyEventArgs)
Dim ctl As Control = Me.ActiveControl
If TypeOf ctl Is TextBox And e.KeyValue = Keys.Enter Then
Me.SelectNextControl(ctl, True, True, True, True)
e.Handled = True
End If
End Sub
thanks,
Michelle