Hai
Private Sub txtTaxId_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtTaxId.KeyDown If e.KeyCode = Keys.Enter Then tabSub.Tabs(1).Selected = True End If End Sub
The above Event is Not Firing .. Instead Form KeyDown Event Gets Fired..!!!
How to get rid of this!!!!
With Regards,
Janani.S
Hello Mike..
You are Right!!!!
Key Preview Property is set to True.
Hi Janani,
Did you try this with any other controls?
I tested this in a new project and just put an UltraTextEditor on a form and hooked the KeyDown event to display a message. When I run this application and press Enter, the message is displayed, so it's working just fine for me.
My guess is that something else in your application is handling the Enter key before it gets to the UltraTextEditor. Maybe you have KeyPreview set to true on your form.