选项卡索引或Tab顺序不起作用

编程入门 行业动态 更新时间:2024-10-26 15:17:55
本文介绍了选项卡索引或Tab顺序不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨大家!! 我有一个窗口表格,其中我有几个控件,我已经为每个控件设置了Tab键顺序,但它无法正常工作。意味着当我在运行时按Tab键时它不会停在所需的控件上。甚至我已经将tabstop属性设置为true。 请帮助。

Hi folks!! I have a windows form in which I have few controls , I have set the tab order for each control but its not working properly. Means when I press tab at run time it doesn't stops at desired control. even I have set the tabstop property to true. Please Help.

推荐答案

不,你没有正确设置它。不要忘记两件事:1)应该启用制表符停止,参见 System.Windows.Forms.Control.TabStop ; 2)控制容器,你的控件的父母也有 TabIndex 这应该被考虑在内。
-SA
No, you don't set it properly. Don't forget two things: 1) Tab stop should be enabled, see System.Windows.Forms.Control.TabStop; 2) control containers, parents of your controls also have TabIndex which should be taken into account.
—SA

在此处阅读有关tabindex属性的更多信息 - msdn.microsoft/en-us/library/ms534654(v = vs.85).aspx [ ^ ]。 确保选项卡索引属性不是负数。 Read more about the tabindex property here - msdn.microsoft/en-us/library/ms534654(v=vs.85).aspx[^]. Make sure that the tab index property is not negative.

更多推荐

选项卡索引或Tab顺序不起作用

本文发布于:2023-10-31 01:35:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544602.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:选项卡   顺序   不起作用   索引   Tab

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!