Go to next tab control page

  • Thread starter Thread starter Con Giacomini
  • Start date Start date
C

Con Giacomini

My customer is a very fast typist. In filling out a multi-tabbed form she
has asked if it is possible to locate a command button on each tab control
page, so that when that button has the focus, the next tab in order becomes
the current page, so that she doesn't have to reach for the mouse to click
on the next tab. Is there code to accomplish this?
 
Con Giacomini said:
My customer is a very fast typist. In filling out a multi-tabbed form she has
asked if it is possible to locate a command button on each tab control page,
so that when that button has the focus, the next tab in order becomes the
current page, so that she doesn't have to reach for the mouse to click on the
next tab. Is there code to accomplish this?

Just place a tiny (but visible=true) TextBox on each TabPage and make it last in
the TabOrder. In its GotFocus event have one line of code that sets focus to
the desired control on the next TabPage. As soon as she tabs out of the last
"real" control on each page she will automatically be taken to the next page.
 
Works perfectly Rick. Thanks very much.

Rick Brandt said:
Just place a tiny (but visible=true) TextBox on each TabPage and make it
last in the TabOrder. In its GotFocus event have one line of code that
sets focus to the desired control on the next TabPage. As soon as she
tabs out of the last "real" control on each page she will automatically be
taken to the next page.
 
Back
Top