Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
615
KeyDown Event For UltraTextEditor is Not Firing For "Enter Key"?
posted

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

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    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.

Children