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.
在Visual Studio中设置/重新排序许多表单控件的TabIndex属性的最有效方法是什么?当我在大型表格上更改布局时,甚至在初始设计时,我常常想知道是否有比单击每个单独控件更快的方式,然后在属性窗口中设置TabIndex。
4 个解决方案
#1
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..)
在Designer模式下,从“视图”菜单中选择“Tab顺序”,然后按所需顺序单击每个控件。然后记得在你完成时关闭Tab Order,否则当你选择一个控件做其他事情时你就会失去你刚刚完成的工作(我希望当你保存时,Tab Order会关闭..)
#2
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.
然后在每个表单上显示一个小数字,表示其Tab键顺序。现在单击每个项目,以便设置其Tab键顺序。
#3
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.
在设计视图中调出VS2012中的Tab键顺序单击实际表单然后转到VIEW / TAB ORDER然后这将启用Tab键顺序窗口。
once you have finished changing the tab order go back to VIEW / TAB ORDER this will deactivate the tab order layout
完成更改Tab键顺序后,返回VIEW / TAB ORDER,这将取消激活Tab键顺序布局
#4
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
如果其他人有同样的问题(你也可以在链接中看到打印屏幕):第一步:当你在菜单的表单的设计视图中时,转到查看并选择标签顺序。第二步:在您的控件上将出现一个代表控件Tab键顺序的数字。要重新设置Tab键顺序,请按升序单击要成功的控件,包括标签(即使它们不可选)。我希望这一步对你来说非常直观。打印屏幕:http://how-to-code-net.blogspot.ro/2013/06/how-to-set-tab-order-for-controls-in.html
#1
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..)
在Designer模式下,从“视图”菜单中选择“Tab顺序”,然后按所需顺序单击每个控件。然后记得在你完成时关闭Tab Order,否则当你选择一个控件做其他事情时你就会失去你刚刚完成的工作(我希望当你保存时,Tab Order会关闭..)
#2
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.
然后在每个表单上显示一个小数字,表示其Tab键顺序。现在单击每个项目,以便设置其Tab键顺序。
#3
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.
在设计视图中调出VS2012中的Tab键顺序单击实际表单然后转到VIEW / TAB ORDER然后这将启用Tab键顺序窗口。
once you have finished changing the tab order go back to VIEW / TAB ORDER this will deactivate the tab order layout
完成更改Tab键顺序后,返回VIEW / TAB ORDER,这将取消激活Tab键顺序布局
#4
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
如果其他人有同样的问题(你也可以在链接中看到打印屏幕):第一步:当你在菜单的表单的设计视图中时,转到查看并选择标签顺序。第二步:在您的控件上将出现一个代表控件Tab键顺序的数字。要重新设置Tab键顺序,请按升序单击要成功的控件,包括标签(即使它们不可选)。我希望这一步对你来说非常直观。打印屏幕:http://how-to-code-net.blogspot.ro/2013/06/how-to-set-tab-order-for-controls-in.html