文本框光标必须自动移动到其他文本框 [英] Textbox Cursor must move to other textbox automatically

查看:89
本文介绍了文本框光标必须自动移动到其他文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的专家,

我的网页上有3个文本框和一个登录按钮.

Textbox1-TxtUserName
Textbox2-TxtDisplayName
Textbox3-TxtPassword

当我在第一个文本框中输入用户名并按TAB按钮时,在按Tab键时光标必须转到第三个文本框.

在此DisplayName中,输入用户名后将自动显示.

================================================== ========

所以我的要求是输入用户名后,光标必须转到第三个文本框(TxtPassword)

请帮助我,该怎么做.

谢谢.

Dear Experts ,

I have 3 textboxes on my webpage and a login button.

Textbox1-TxtUserName
Textbox2-TxtDisplayName
Textbox3-TxtPassword

When I Enter Username in 1st textbox and press TAB Button the cursor must go to the 3rd Textbox when tab pressed.

In this DisplayName will be automatically Displayed after entering Username.

==========================================================

So My REQUIREMENT IS AFTER ENTERING USERNAME, The CURSOR MUST GO THE 3rd Textbox(TxtPassword)

Please help me , how to do this.

Thanks.

推荐答案

设置TabOrder: MSDN 制表顺序" [ ^ ]
Set the TabOrder: MSDN "Tab order"[^]


设置textboxesTabindex 属性.

Set Tabindex property of textboxes.

TextBox1.TabIndex = 1;
TextBox2.TabIndex = 2;
TextBox3.TabIndex = 3;





谢谢
AShish





Thanks
AShish


textBox3.TapOrder=1;


这篇关于文本框光标必须自动移动到其他文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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