Tab index not working with controls in panels?

I have a vb.net window form with 15 lists and 15 text fields, as well as several other controls. All these text boxes and combo boxes are located in panels. The reason for this is because I need to adjust the visible property of the controls based on what the user selects / enters, so grouping each label and control together in their panels seemed an easy way to achieve this. I set the tab order through properties, but it does not work. When I look at my form, it skips and does not follow the tab order I set. Is it because my controls are located in separate panels? I set TabStop to false for everything I don’t want to use tabstop, I'm a little confused about what is going on here, it really seems that the factthat my comboboxes and text fields inside the panels themselves prevents my Tab Indexes from working. Can anyone confirm this or have other ideas on what might happen? Tab Index works if I create a new form.

+5
source share
4 answers

, , , TabIndex. , - View > Tab Order, LarsTech. , , , , . , , . , , , . , , .

+7

"View - Tab Order" Visual Studio , . () .

+3

TabStop FALSE , , . TabStop LABELs FALSE, INTERACTIVE Controls - TABSTOP = True ( ).

Tab. TabStop Tab - .

Name         Parent        TabOrder        TabStop
=======================================================
Form         -             0               -
TabStrip1    Form          1               True
Tab1         TabStrip1     2               True
Label1       Tab1          3               False
Textbox1     Tab1          4               True
Label2       Tab1          5               False
Combo1       Tab1          6               True

Tab2         TabStrip1     7               True
Label3       Tab2          8               False
Textbox2     Tab2          9               True
Label4       Tab2          10              False
Combo2       Tab2          11              True

Tab3         TabStrip1     12               True
Label5       Tab3          13               False
Textbox3     Tab3          14               True
Label6       Tab3          15               False
Combo3       Tab3          16               True
+2

, ( , , ). Classic VB,.Net . , , , .

, , " - ", . , , . . , .

+1

All Articles