CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Location
    montreal
    Posts
    13

    backspace or going back

    HI
    i would like to know if there an easy way to move backwords with textboxes. When i press enter on a text box the focus move to the next one with the number higher than the previous one.
    How do u go backwords?

    Thank's a lot for your help!
    Frank


  2. #2
    Join Date
    Jul 2001
    Posts
    7

    Re: backspace or going back

    You should move focus between textboxes (or any controls on the form) with a TAB key (assuming that you have TABINDEX property for those textboxes set correctly). Backwords with a SHIFT+TAB key. ENTER key should invoke a click event for a default button on the form. If you need a custom keystroke to move from one textbox to another you need to look at KEYPRESS or KEYDOWN or KEYUP event, catch interesting you keystroks, and SETFOCUS to next textbox in chain.


  3. #3
    Join Date
    Aug 2001
    Location
    montreal
    Posts
    13

    Re: backspace or going back

    thank you


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