Chad
Chad

Reputation: 24699

Setting the TabIndex property in WinForms

Back in the ancient days in VB6, two different controls could not have the same TabIndex. If I tried to assign a control with the same index as another control, the other control's index would be scooted up sequentially in the tab order.

Now in .NET, I see 2 controls have the same index.

How can this make sense?

Is there a utility to easily set the sequence without having to iterate through the property grid?

Upvotes: 6

Views: 3135

Answers (1)

Hans Passant
Hans Passant

Reputation: 942267

No, the designer doesn't 'fix' the TabIndex you set. There's an interactive tool to set them. Use View + Tab Order and click the controls in the order you want to tab them.

Upvotes: 13

Related Questions