Setting the TabIndex property of many form control

2019-01-17 19:07发布

What is the most efficient way to set/re-order the TabIndex properties of many form controls in Visual Studio? When I change the layout on a large form, or even on initial design, I often wonder if there's a faster way than clicking each individual control then setting the TabIndex in the properties window.

4条回答
迷人小祖宗
2楼-- · 2019-01-17 19:31

Bring up the Form in design mode.

Click the View Menu -> Tab Order

Then a little number will show up on each form representing its tab order. Now click each item in order that you want their tab order set.

查看更多
成全新的幸福
3楼-- · 2019-01-17 19:34

While in Designer mode, select Tab Order from the View menu then click on each control in the order you want. Then remember to turn off Tab Order when you're finished, otherwise when you select a control to do something else you lose the work you've just done (I wish Tab Order would turn off when you Save..)

查看更多
4楼-- · 2019-01-17 19:40

To bring up the tab order in VS2012 while in Design View Click on the actual form then goto VIEW / TAB ORDER then this will enable the tab order window.

once you have finished changing the tab order go back to VIEW / TAB ORDER this will deactivate the tab order layout

查看更多
▲ chillily
5楼-- · 2019-01-17 19:53

In case some other will have the same issue(you may also see print screens in link): First step: as you are in Design View of your form in menu go to View and select Tab Order. Second step: on your controls will appear a number that represents the Tab Order of your control. For re - setting tab order press a click in ascending order the controls that want to succeed, including Labels(even they are not selectable). I hope it is very intuitive this step for you too. Print screens at: http://how-to-code-net.blogspot.ro/2013/06/how-to-set-tab-order-for-controls-in.html

查看更多
登录 后发表回答