Why is the Enter key not capture on KeyDown Event in textbox?
Hello
I have the following bit of code which is trying to capture the Enter button in a text box. This works fine in Acad but in Brics the even does not trigger. It does for every other key but not the enter button.
Private Sub txtBearing_KeyDown(sender As Object, e As Windows.Forms.KeyEventArgs) Handles txtBearing.KeyDown
If e.KeyData = Windows.Forms.Keys.Enter Then
e.SuppressKeyPress = True
SelectNextControl(ActiveControl, True, True, True, True)
End If
End Sub
I have similar code in the first text box on the form which works. it executes some code (makes some text boxes visible and changes the form size) but nothing I can see that somehow disables the Enter button from be captured.
Thanks
0