Friday, July 27, 2007

A colleague on my current project asked me how he could set very fast the correct tab order in a Win Form, as this seems different to VS2003.

It’s simple, follow these steps

  1. Open your Win Form
  2. Under the View menu or in the menu bar you will find the Tab Order option.  If it’s not enabled, you select all your controls.

  3. Then your screen will look like this

  4. Now you can click on the controls to set the tab order.

This is the new result.

This is a very fast way to set your tab order. BTW : If you have numbered you control to far, just keep clicking.  When the number of controls is reached, the taborder will start over at 0, so you can just cycle then till you have the correct tab order.

Keep in mind; the labels have also a tab order but VS removes the tab order of them.  Only when you use hotkeys, the tab order of the labels is also important.

7/27/2007 9:35:18 AM (Romance Standard Time, UTC+01:00)  #     |