Tab Order
-
I've got a Form that I created that has roughly 30 controls that I need to tab through. I set the Tab Index of each control accordingly, but the tab NEVER follows this order. I'm not doing anything fancy to the controls such as handling events. It almost looks like the form is tabbing through the controls in the order which I added them to the form. On a hunch, I even tried rearranging the initialization in the Component Designer Generated code so that they even appeared in the code in the correct order, but this still didn't help. Has anybody else ever had this problem? How can I take care of it? Would appreciate the help! Thanks :-D
-
I've got a Form that I created that has roughly 30 controls that I need to tab through. I set the Tab Index of each control accordingly, but the tab NEVER follows this order. I'm not doing anything fancy to the controls such as handling events. It almost looks like the form is tabbing through the controls in the order which I added them to the form. On a hunch, I even tried rearranging the initialization in the Component Designer Generated code so that they even appeared in the code in the correct order, but this still didn't help. Has anybody else ever had this problem? How can I take care of it? Would appreciate the help! Thanks :-D
Set the tabindex AFTER you have added the tab page to the tab control :)
-
Set the tabindex AFTER you have added the tab page to the tab control :)
-
no no, it's not a tab control. It is a bunch of text and combo boxes that refuse to tab in the order I set the TabIndexes. Sorry for the confusion.
In Visual Studio .NET, use the View TabOrder menu item to set these. This should also change the order in which the controls are added using the
AddRange
method of their container control'sControls
collection property.Microsoft MVP, Visual C# My Articles
-
In Visual Studio .NET, use the View TabOrder menu item to set these. This should also change the order in which the controls are added using the
AddRange
method of their container control'sControls
collection property.Microsoft MVP, Visual C# My Articles