Hello
anyone has seen this before
when you have a custom textbox and
the key event don't work
doesn't work even with the sendkeys the app freezes
does nothing either.
does someone knows how to fix this please?
anyone has seen this before
when you have a custom textbox and
the key event don't work
vb code Code:
Private Sub OnBaseKeyDown(ByVal s As Object, ByVal e As KeyEventArgs) If e.KeyCode = Keys.Enter Then ' SendKeys.Send("{ENTER}") e.SuppressKeyPress = True End If End Sub
doesn't work even with the sendkeys the app freezes
code Code:
Private Sub myTextBox1_KeyDown(ByVal sender As System.Object, _ ByVal e As System.Windows.Forms.KeyEventArgs) _ Handles mylTextBox1.KeyDown If e.KeyCode = Keys.Enter Then MsgBox("Help") End If End Sub
does nothing either.
does someone knows how to fix this please?