How do you navigate through controls using the Enter key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PRAMADIVI
    New Member
    • Oct 2014
    • 1

    How do you navigate through controls using the Enter key

    How to use enter key? When am using two textbox then to enter the key automatically goto next form. This time am not using tab or mouse ??
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Write a method that listens for keyboard events that occur in your form.


    In that method, check if the enter key was pressed. If it was, determine which control currently has keyboard focus and determine which control should get keyboard focus next, set the focus to the next control, and mark the event as handled.


    -Frinny

    Comment

    Working...