in

Platinum Bay

Peace, Love and Visual Studio Team System

.NETicated

WinForms: Tab Order

So you've created a great winforms app with loads of controls, you fire it up, start tabbing through fields, and the cursor is jumping all over the place. What a pain. Now you have to go back through each and every control and set the tab order manually in the Properties window. Sound familiar?

In a stroke of pure genius, Microsoft thought of this too. Visual Studio contains built-in support for graphically setting control tab order – no more properties window.

To begin, load up your form in the designer view. The go to View >> Tab Order.

Your form should now have little blue boxes with white numbers over each control. Now you can simply start clicking through the blue boxes to set the tab order. As you set each item, the blue boxes will turn white and display the new tab order. When you have clicked through all the controls, the boxes turn blue again. If you screwed up, you can click through again.

Click through to View >> Tab Order again to exit this feature.

Comments

July 28, 2008 8:10 AM

Does this works just for VS 2008?

My project is in 2005 and I can't find that item in the menu.

Antonio
 

July 28, 2008 8:49 AM

Oh, just got it! I have to select the form, not any other control. Once the form is selected the tab order item in the menu appears.

Now I just have to figure it out how does it really works (4.5.15.1 is not a very intuitive tab order, and less if the next control says 4.5.6)

Antonio
 

Leave a Comment

(required )  
(optional )
(required )  
Add

About Steve

Steve Andrews has been working as a developer for more than 8 years. During this time, he has designed and developed applications in such widely varying areas as trust accounting, medical information management, supply chain management, and retail systems. He has firsthand developer experience with a variety of languages, including Java, VB, and .NET. Most recently, he has been immersed in SharePoint. He is currently employed at RDA Corporation in Philadelphia, PA, as a Software Engineer and a team member in the Architectural Guidance evangelism team. Steve is also an MTCS (x2), ICSOO, and .NET fanatic.
Powered by Community Server (Commercial Edition), by Telligent Systems
© Platinum Bay | Some Rights Reserved Creative Commons License

Disclaimer: The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or annonymous comments) - so keep it polite, please.