如何在VB.Net中保留表单字段的选项卡按钮 [英] How to keep tab button for fields of form in VB.Net

查看:61
本文介绍了如何在VB.Net中保留表单字段的选项卡按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

1)在运行时,以我的VB.Net格式,当我按下新建"按钮时,我希望光标默认位于第一个字段中.我该怎么办?

2)如果按下Tab键,应该如何使光标自动转到下一个字段?

您能帮我解决上述两个问题吗?

Hello

1) During Run Time in my VB.Net form I want the cursor to be in first field as default, when I press the "New" button. How should I do that?

2) How should I make the cursor go to the next field automatically if I press the Tab button?

Can you help me out to solve above two issues?

推荐答案

1)在Load事件(或构造函数)中或在设计人员,将第一个控件的制表符顺序设置为0.

2)在设计器中,您需要设置每个控件的制表符顺序.
1) Either call the Focus method for the control in the Load event (or the constructor), or in the designer, set the tab order of the first control to 0.

2) In the designer, you need to set the tab order of every control.


这篇关于如何在VB.Net中保留表单字段的选项卡按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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