Ich habe eine Windows-Formularanwendung. Auf dem Formular befinden sich drei Groupboxes. Jedes Gruppenfeld enthält einige Steuerelemente. Bitte sehen Sie das Bild. TabIndex funktioniert nicht richtig
Es gibt ein Groupbox "Flag", das ein paar Checkboxen enthält. "flag" befindet sich in "groupbox1". Ich benutzte Tab-Taste, um durch jedes Steuerelement gehen, aber es funktioniert nicht für Kontrollkästchen in "Flag". Ich habe für jedes Steuerelement den richtigen Tabindex gesetzt.
Es funktioniert für Textfelder und Schaltflächen, aber Kontrollkästchen.
Warum? Danke für die Hilfe.
EDIT
// groupBox2
//
this.groupBox2.Controls.Add(this.pictureBox10);
this.groupBox2.Controls.Add(this.pictureBox9);
this.groupBox2.Controls.Add(this.pictureBox8);
this.groupBox2.Controls.Add(this.pictureBox7);
this.groupBox2.Controls.Add(this.chkStoplight);
this.groupBox2.Controls.Add(this.lblStoplight);
this.groupBox2.Controls.Add(this.chkIsCount);
this.groupBox2.Controls.Add(this.chkExceptionFlag);
this.groupBox2.Controls.Add(this.chkIsActive);
this.groupBox2.Controls.Add(this.lblIsActive);
this.groupBox2.Controls.Add(this.lblExceptionFlag);
this.groupBox3.Controls.Add(this.lblIsCount);
this.groupBox2.Location = new System.Drawing.Point(16, 201);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(321, 70);
this.groupBox2.TabIndex = 10;
this.groupBox2.TabStop = true;
this.groupBox2.Text = "Flags";
//
// chkStoplight
//
this.chkStoplight.AutoSize = true;
this.chkStoplight.Location = new System.Drawing.Point(44, 25);
this.chkStoplight.Name = "chkStoplight";
this.chkStoplight.Size = new System.Drawing.Size(15, 14);
this.chkStoplight.TabIndex = 0;
this.chkStoplight.UseVisualStyleBackColor = true;
In the property, I found TabStop is true for chkStoplight.
Bitte sagen Sie uns, welches Steuerelement aktiv wird, nachdem Sie kontinuierlich auf die Registerkarte drücken –
Konnten Sie Ihren Code posten? – Dante
Der Code ist nur Zahlen für Tabindex. Alle Steuerelemente sind aktiv, mit Ausnahme von Kontrollkästchen. –