Click to See Complete Forum and Search --> : backspace or going back


frank vez
August 8th, 2001, 11:22 AM
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

Krysia
August 8th, 2001, 12:32 PM
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.

frank vez
August 8th, 2001, 01:35 PM
thank you