setting tab order by code

  • Thread starter Thread starter dlrauh
  • Start date Start date
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?
 
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.
 
Back
Top