VB.NET 为什么我的 Tab 键顺序被忽略,即使我在设计视图中手动设置了每个控件的 Tab 索引?
我有一个 WPF 应用程序。我的 WinForms 选项卡表现得很疯狂。我进入 .designer.vb 并设置所有控件 .tabindex = 0。
然后转到表单的设计视图并将选项卡顺序设置为:
0.0.0.0.1
0.0.0.0.2
0.0.0.0.etc
< img src="https://i.sstatic.net/J9rn7.png" alt="My forms Tab Orders">
。我尝试使用以下按钮VS.2008
我尝试手动设置每个控件上的 Tab 键顺序。
我尝试将每个控件设置为 0,然后手动设置 Tab 键顺序。
我尝试过迭代控件并设置 Z 顺序。
我错过了什么?!?
I have a WPF application. My WinForms tabbing is acting crazy. I went into the .designer.vb and set all controls .tabindex = 0.
I then go to the design view of a form and set the tab order as:
0.0.0.0.1
0.0.0.0.2
0.0.0.0.etc
.I have tried using the button in VS.2008
I have tried manually setting the tab order on each control.
I have tried settings every control to 0 and then manually setting the tab order.
I have tried iterating the controls and setting the Z-Orders.
What am I missing?!?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用面板可能会很困难。正如 RBarryYoung 所说,你必须单独对待每个面板。整理出最外面的面板并向内操作,直到找到控件为止。
我发现最好的方法是将文档大纲窗口 (Ctrl+Alt+T) 固定在屏幕的一侧,以查看面板的排列方式和属性窗口到另一个。
文档大纲 - MSDN
然后设置使用属性窗口手动订购。除了非常简单的表单之外,我从未设法让制表符顺序按我想要的方式工作。
It can be hard work with panels. You have to treat each panel seperately, as RBarryYoung says. Sort out the outmost panels and work inwards until you get to your controls
I find best way is to pin the Document Outline window (Ctrl+Alt+T) on one side of the screen to see how your you panels are arranged and the properties window to the other.
Document Outline - MSDN
Then set the order manually using the properties window. I've never managed to get tab order to work as I would like except on very simple forms.