CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2002
    Location
    asian
    Posts
    116

    enter key like tab key

    I'm looking for an easy way to treat all 'Enter' Keypresses as a 'Tab' keypress.

    I want to move the focus to the next textbox after the user press enter just like the tab key. Any idea?


    Thanks
    Thanks!!!
    Kristine

  2. #2
    Join Date
    Jun 2003
    Location
    Malaysia (P.J)
    Posts
    410
    in keydown event...
    If e.KeyCode = Keys.Enter Then
    SendKeys.Send("{TAB}")
    End If
    Back after a long hibernation.

  3. #3
    Join Date
    Oct 2002
    Location
    asian
    Posts
    116
    Hi!!! Where should i put those codes? I tried putting it on the textbox keypress event but it only display the word (TAB) on the text box.
    Thanks!!!
    Kristine

  4. #4
    Join Date
    Jun 2003
    Location
    Malaysia (P.J)
    Posts
    410
    in keydown event...
    Back after a long hibernation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured