Tab Order

T

TeeSee

Is there a way to exclude a control from the tab order sequence?

Based on my last post (Option Groups) if you can toggle two text boxes
between being visible and not can you alter the tab order to suit each
given state?

Any suggestions, as always, very much appreciated.
 
R

Rob Parker

In the Other tab of the property sheet, set the Tab Stop property to No.

I don't quite understand why you want/need to do this, though. If a control
is not visible, you cannot tab to it; it is omitted from the set of controls
that you can tab to; when you are on the control with the previous tab order
number, tabbing will move to the control with the next higher tab order
number.

HTH,

Rob
 
M

Marshall Barton

TeeSee said:
Is there a way to exclude a control from the tab order sequence?

Based on my last post (Option Groups) if you can toggle two text boxes
between being visible and not can you alter the tab order to suit each
given state?


I don't understand the problem, if a control is invisible,
you can not table to it (invisible controls can not get the
focus).
 
T

TeeSee

I don't understand the problem, if a control is invisible,
you can not table to it (invisible controls can not get the
focus).
Gentlemen!
I obviously was not clear in my queries. The TAB key was entering into
my "Option Group Frame" and that is what I wanted to stop. At the same
time I was not aware that invisble controls could not have focus
(hadn't really thought about it). So I learned two things tonite.

Thanks again
 
M

Marshall Barton

TeeSee said:
Gentlemen!
I obviously was not clear in my queries. The TAB key was entering into
my "Option Group Frame" and that is what I wanted to stop.


You can use code to set the TabStop property:

Me.frame01.TabStop = False

I guess maybe you should do that when you make those text
boxes invisible?

I think you should consider following the Windows UI
standard and disable the option frame instead of fooling
with the tab order/stop:

Me.frame01.Enabled = False

Since a disabled control can not receive the focus, you can
not tab to it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top