By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,456 Members | 1,473 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,456 IT Pros & Developers. It's quick & easy.

Tabbing to next tab

P: n/a
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?

Thanks

Regards
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"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
Nov 12 '05 #2

P: n/a
On the last control of each tab, write an event routine for the Exit
event with
code such as:

Me.theTab.value = Me.theTab.value + 1

This will take the user to the first control on the next tab.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.