>I need to have 2 textboxes that act like the columns in a browse. For example if I had 3 textboxes, one fopr area code, one for prefix and one for suffix like a phone number, I want the user to type in 201 and after they type the 1 in 201 the cursor automatically goers to the next field (the prefix without hitting enter.
>
>Is there some autoadvance or autoreturn property?
>
>Thanks,
>John
Well this sounds (at first hand) like a job for TabOrder.
How do you indicate completion of the 201 field (return, tab or just the typing of "1")? Is the field always going to end in "1"?
The valid event - you can return 1 (advance to next field in tab order)
You can use InteractiveChange event to keep a count of keystrokes. On 3 you can thisform.txtNextField.SetFocus().
HTH
Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.