Timothy John Laird
Timothy John Laird

Reputation: 1121

issue with tabindex in c# .net

If you will look at this image:

.net c# dialog

The blue numbers represent the tab index property that I have for the controls. My problem is that when I put the focus on the first textbox control and start hitting TAB it goes from index 0 to 1 to 5 and skips the three controls that are in the group box.

How can I set this up so that when I put the focus on the first text box (index 0) and continue to TAB it will cycle straight from controls 0 to 5 without skipping over the controls in the group box?

Upvotes: 2

Views: 4803

Answers (2)

Richard Howes
Richard Howes

Reputation: 71

I ran into the same issue and I found that, in addition to setting the tab order/tab index, I needed to be certain that TabStop = true. This issue (false) was causing my group of controls to be skipped.

Upvotes: 0

joe
joe

Reputation: 8654

In Visual Studio open your windows forms designer. Go to menu 'View' and then use 'Tab Order'.
Here you will see the tree-like control order.
Just click the controls in the order you want to have.

Upvotes: 5

Related Questions