Tabbing between Tabs without CTRL Tab

  • Thread starter Thread starter MHiemstra
  • Start date Start date
M

MHiemstra

I want if a user presses the [TAB] key to move to the next Tab Cntrl without
having to press the Ctrl TAB...is this possible...I am beginning to realize
anything is possible, just don't know how to do it..
 
Maybe, but that is not the normal key combination used. I guess you COULD
make the "A" key tab between tab pages, but I'm not sure why you'd want to.

Just a personal opinion, but I try not to change basic window behavior like
the one you mentioned. It may make sense to a new computer user, but if
someone who knows the shortcuts sits down to use your database they will be
very confused.

Just my opinion.

Rick B
 
MHiemstra said:
I want if a user presses the [TAB] key to move to the next Tab Cntrl
without having to press the Ctrl TAB...is this possible...I am
beginning to realize anything is possible, just don't know how to do
it..

What I do is make a very small (but visible) TextBox that is last in the
TabOrder on each page of the TabControl. In the GotFocus event of the this
TextBox...

ControlNameIWantToGoTo.SetFocus

When the user uses <Tab> to <Enter> to leave the last "real" control on each
Page they are automatically taken wherever you specify in that code. If
they use the mouse or Shift-Tab then everything behaves normally.
Strategies that use the LostFocus or Exit event of the last real control do
not provide this last feature without a lot of extra coding in the key
events.
 
Back
Top