Tabbing through controls on a tab control 
Author Message
 Tabbing through controls on a tab control

Did some searching, but haven't found anything yet....

I have a SSTab Control with 4 tabs on it. Each tab has about 20 controls on
it (text boxes, combo boxes, etc). I set the tabindex of each control and
would expect "tabbing" to work in the order I assigned. My last control on
tab0 has a tabindex of 19, the forst control on tab1 has a tabindex of 20.
When tabbing through the controls, i would expect that the user would be
taken from the last control on tab0 to the first control of tab1. This is
not the case though.

I even put code into the GotFocus event of the first control of tab1 and set
SSTab.Tab=1, but that doesn;t work either. The Got Focus event doesn;t even
fire when leaving the last control on tab0.

Basically, I just want the user to automatically go to the next tab when
tabbing out of the last control on a tab.

What am I missing? And did I use the word "tab" enough?

Thanks,
-David



Mon, 17 Jan 2005 23:42:24 GMT  
 Tabbing through controls on a tab control
There's nothing built in that allows this.. but, I have a sample that shows
one way of doing it... handles Tab as well as Shift-Tab

Automatically Switch Tabs (SSTab)
http://www.vbsight.com/Code.htm

--
Ken Halter - MS-MVP-VB - Please keep it in the groups..
http://www.vbsight.com - http://www.vbsight.com/MultiColumn.htm

Quote:

> Did some searching, but haven't found anything yet....

> I have a SSTab Control with 4 tabs on it. Each tab has about 20
> controls on it (text boxes, combo boxes, etc). I set the tabindex of
> each control and would expect "tabbing" to work in the order I
> assigned. My last control on tab0 has a tabindex of 19, the forst
> control on tab1 has a tabindex of 20. When tabbing through the
> controls, i would expect that the user would be taken from the last
> control on tab0 to the first control of tab1. This is not the case
> though.

> I even put code into the GotFocus event of the first control of tab1
> and set SSTab.Tab=1, but that doesn;t work either. The Got Focus
> event doesn;t even fire when leaving the last control on tab0.

> Basically, I just want the user to automatically go to the next tab
> when tabbing out of the last control on a tab.

> What am I missing? And did I use the word "tab" enough?

> Thanks,
> -David



Tue, 18 Jan 2005 00:32:32 GMT  
 Tabbing through controls on a tab control
Adding to Ken, this is the normal functionality of the tab controls.  You
can tab through the current tab only.  I hate this as well but???  Check out
Ken's Reference

--
Richard Wittmann
Senior Applications Developer/Team Lead
Financial Information Network


Quote:
> There's nothing built in that allows this.. but, I have a sample that
shows
> one way of doing it... handles Tab as well as Shift-Tab

> Automatically Switch Tabs (SSTab)
> http://www.vbsight.com/Code.htm

> --
> Ken Halter - MS-MVP-VB - Please keep it in the groups..
> http://www.vbsight.com - http://www.vbsight.com/MultiColumn.htm


> > Did some searching, but haven't found anything yet....

> > I have a SSTab Control with 4 tabs on it. Each tab has about 20
> > controls on it (text boxes, combo boxes, etc). I set the tabindex of
> > each control and would expect "tabbing" to work in the order I
> > assigned. My last control on tab0 has a tabindex of 19, the forst
> > control on tab1 has a tabindex of 20. When tabbing through the
> > controls, i would expect that the user would be taken from the last
> > control on tab0 to the first control of tab1. This is not the case
> > though.

> > I even put code into the GotFocus event of the first control of tab1
> > and set SSTab.Tab=1, but that doesn;t work either. The Got Focus
> > event doesn;t even fire when leaving the last control on tab0.

> > Basically, I just want the user to automatically go to the next tab
> > when tabbing out of the last control on a tab.

> > What am I missing? And did I use the word "tab" enough?

> > Thanks,
> > -David



Tue, 18 Jan 2005 01:03:15 GMT  
 Tabbing through controls on a tab control
Thanks! Just what I needed.


Quote:
> Did some searching, but haven't found anything yet....

> I have a SSTab Control with 4 tabs on it. Each tab has about 20 controls
on
> it (text boxes, combo boxes, etc). I set the tabindex of each control and
> would expect "tabbing" to work in the order I assigned. My last control on
> tab0 has a tabindex of 19, the forst control on tab1 has a tabindex of 20.
> When tabbing through the controls, i would expect that the user would be
> taken from the last control on tab0 to the first control of tab1. This is
> not the case though.

> I even put code into the GotFocus event of the first control of tab1 and
set
> SSTab.Tab=1, but that doesn;t work either. The Got Focus event doesn;t
even
> fire when leaving the last control on tab0.

> Basically, I just want the user to automatically go to the next tab when
> tabbing out of the last control on a tab.

> What am I missing? And did I use the word "tab" enough?

> Thanks,
> -David



Tue, 18 Jan 2005 01:46:30 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Masked Edit COM control appears only on first tab page of tab control in VB.NET

2. tab control - loading controls onto tabs in runtime

3. Tab control & Control on a tab

4. How to set the current tab in Tab control of MS COMMON CONTROL

5. Special Tab Control similar to tab control in MS outlook

6. Moving Between Tabs in a Tab Control

7. tab control - order of tabs

8. Tab control in VB dot net shuffling his tabs

9. Adding Tabs To Tab Control

10. How to select Tab Control tab page programmatically?

11. Tab Control Tab Visible

12. Tab Control - Remove Tab

 

 
Powered by phpBB® Forum Software