从代码中重置选项卡顺序索引 [英] reset tab order index from within code

查看:49
本文介绍了从代码中重置选项卡顺序索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从代码中像事件处理程序中那样重设制表符顺序?

how do I reset tab order from within code say like within an event handler?

推荐答案

好,您可以检索页面的所有控件并重新定义标签索引?
ok, you can retrieve all control of your page and re-define the tab index ?


myControl.TabOrder = 5;?
还是5个,如果喜欢的话是7个...
然后为Form上的其他Controls重复代码行.
myControl.TabOrder = 5; ?
Or not 5, but 7 if you like...
Then repeat the line of code for the other Controls you have on the Form.


这篇关于从代码中重置选项卡顺序索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆