如何防止ENTER Keypress只进入下一个文本框? [英] How to prevent a ENTER Keypress from going only to the next Text Box ?

查看:159
本文介绍了如何防止ENTER Keypress只进入下一个文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

一个表单在页面末尾有多个TextBox和一个SAVE按钮。当您在一个TextBox中输入一个值并按ENTER键时,ENTER Keypress将通过多个TextBox并激活页面底部的默认按钮,而不是在等待输入的下一个TextBox中使用

A Form has multiple TextBoxes and a SAVE Button at the end of the page. When you enter a value in one TextBox and press ENTER, the ENTER Keypress takes through multiple TextBoxes and activates the Default Button at the bottom of the page, instead of sitting in the next TextBox waiting for Input.

如何阻止ENTER按键激活页面底部的默认SAVE按钮?

How do I prevent the ENTER keypress from activating the default SAVE Button at the bottom of the page ?

提前致谢!

推荐答案

7月,

您是否已将文本框的TabStop属性设置为True并为每个文本框分配了Tabindex编号?

Have you set the TabStop property of the textboxes to True and assigned a Tabindex number to each textbox?

另外,您需要设置"默认" ;命令按钮的属性为False

Plus, you need to set the "Default" property of the command button(s) to False


这篇关于如何防止ENTER Keypress只进入下一个文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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