如何在Windows窗体应用程序中跳过对按键的组框控件 [英] How to skip groupbox controls against keypress in windows form application

查看:55
本文介绍了如何在Windows窗体应用程序中跳过对按键的组框控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows窗体中有3个groupbox。并且每个groupbox都包含一些文本框控件。首先,用户在第一个组框控件中输入数据,然后他想跳过第二个组框。所以鼠标指针将在第3组控件上闪烁。怎么样?有人可以帮帮我吗?提前谢谢...

解决方案

嗯,这里你需要根据你的要求维护 Tab Order



Control.TabIndex 属性获取或设置其容器内控件的Tab键顺序。

参见 MSDN [ ^ ]。



将第一个分组框的标签顺序设为1,将第二个分组设置为第三个分组框。问题解决了:)



-KR


in a windows form there are 3 groupbox. and every groupbox holds some textbox controls. first, user enter the data in first groupbox controls, then he wants to skip the second groupbox. so mouse pointer will blink on the 3 rd groupbox controls. how? anybody can help me? thanks in advance...

解决方案

Well, here you need to maintain the Tab Order according your requirement.

Control.TabIndex property gets or sets the tab order of the control within its container.
See the MSDN[^].

Give tab order to the first groupbox as 1, and 2 to the third groupbox. Problem Solved :)

-KR


这篇关于如何在Windows窗体应用程序中跳过对按键的组框控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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