turning off tabbing for labels?

ICW

Active member
Joined
Mar 27, 2006
Messages
25
Programming Experience
Beginner
Hi I want to set the tab order of my windows form.
I can see that the view menu has a tab order function.
My problem is that I am seemingly unable to turn off tabbing for labels.

the properties of each label do not seem to have a "TabStop" feature.
thanks
ICW
 
Actually the label does have a tabstop property that it inherits from control. It's just that MS have seen fit to hide it from you. If you type..


VB.NET:
YourLabel.TabStop = True
 
Or
 
YourLabel.TabStop = False


Intellisense won't show it but it will work just fine.
 
It has been my experience that tabstop for labels is set false by default. Interesting that you presumably have not found that to be the case.
 
I'm wondering how it is that one comes to find out that the tabbing does stop on the label.... the reason you can (should) set the TabOrder of Labels is to allow the focus to set to the next (and presumably related) control in the order. Additionally, if you have a keyboard shortcut set on a label, since the label cannot accept focus, it goes to the next control in the tab order, which should be the related control.

-tg
 
Back
Top