setting tab order by code

D

dlrauh

I have a form that has 4 text boxes and two buttons. When an invalid
entry is found I want the focus to be set to the originating text box.
Now when you press enter and the invalid entry is discovered the focus
is set to the next tab box even when I set the focus back to the
original text box. Any ideas?
 
T

Tom Ogilvy

Use the Exit event to do the validation, then set cancel = True to stay in
the text box if you decide the entry is invalid.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top