"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:40***********************@news-text.dial.pipex.com...
Hi
Is it possible that when a user is past a field on one tab of the tab
control it automatically switches to the second tab to save manually
changing the tab when entering data?
Here is what I recommend...
Place a tiny (but visible=true) TextBox on the first TabPage and make it
last in the TabOrder. In the GotFocus event of that TextBox have code that
sets Focus to desired control on second TabPage. When you tab out of the
last "real" control on page 1 you will automatically be taken to the first
control on page 2.
This is better than using the Exit or LostFocus event of the last control
on page 1 because it only takes you to page two if you leave that last
control on page 1 via the <Tab> or <Enter> keys. If the user uses their
mouse or Shift-Tab you won't override their action by taking them somewhere
they don't want to go.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com