表单未捕获Enter键按下 [英] Form Not Capturing Enter Key Presses

查看:73
本文介绍了表单未捕获Enter键按下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个教育程序,可以测试我为学校编写的用户(出于修订目的),但是我遇到了问题.在主表单上,我有一个文本框,该文本框在大部分时间都在使用该表单,而我有一个按钮 它检查输入到该文本框中的答案,但是当用户按下Enter提交答案时,按钮未被单击".我花了几个月的时间来解决这个问题,我已经在另一个网站上发布了该文章(http://stackoverflow.com/questions/18673031/my-form-is-not-registering-enter-key-presses  am2nuser2756856,您将需要点击添加/显示6条其他评论"接近底部以查看完整线程),但没有人可以帮助我解决我的问题.您可以阅读此主题以查看我已经尝试过的内容,但是奇怪的是 回车键是唯一受影响的键.文本框不是多行的,对此我看不到逻辑解释,acceptbuttons可以正常工作 解决方案中的所有其他表格.

I have an educational program which tests the user (for revision purposes) which I have written for my school, but I am having a problem. On the main form I have a text box which will have focus most of the time the form is being used then I have a button which checks the answer entered into that text box, but when the user presses enter to submit the answer the button is not "clicked". I have spent several months trying to work this out I have already posted on another site (http://stackoverflow.com/questions/18673031/my-form-is-not-registering-enter-key-presses I am user2756856 and you will need to click "add / show 6 more comments" near the bottom to see the full thread) but nobody could help me with my problem. You can read this thread to see what I have already tried but what is strange is that the enter key is the only key that is affected. The text box is not multiline and I can see not logical explanation for this, acceptbuttons work on all other forms in the solution.

我确实需要帮助,这是一个主要问题,因为它大大降低了程序的用户友好性!

I really need help with this, it is a major problem, as it decreases the user friendliness of my program significantly!

非常感谢任何人!

推荐答案

我有一个教育程序,可以测试我为学校编写的用户(出于修订目的),但是我遇到了问题.在主表单上,我有一个文本框,该文本框在大部分时间都在使用该表单,而我有一个按钮 它检查输入到该文本框中的答案,但是当用户按下Enter提交答案时,按钮未被单击".我花了几个月的时间来解决这个问题,我已经在另一个网站上发布了该文章(http://stackoverflow.com/questions/18673031/my-form-is-not-registering-enter-key-presses  am2nuser2756856,您将需要点击添加/显示6条其他评论"接近底部以查看完整线程),但没有人可以帮助我解决我的问题.您可以阅读此主题以查看我已经尝试过的内容,但奇怪的是,输入 密钥是唯一受影响的密钥.文本框不是多行的,对此我看不到逻辑解释,acceptbuttons可以正常工作 解决方案中的所有其他表格.

I have an educational program which tests the user (for revision purposes) which I have written for my school, but I am having a problem. On the main form I have a text box which will have focus most of the time the form is being used then I have a button which checks the answer entered into that text box, but when the user presses enter to submit the answer the button is not "clicked". I have spent several months trying to work this out I have already posted on another site (http://stackoverflow.com/questions/18673031/my-form-is-not-registering-enter-key-presses I am user2756856 and you will need to click "add / show 6 more comments" near the bottom to see the full thread) but nobody could help me with my problem. You can read this thread to see what I have already tried but what is strange is that the enter key is the only key that is affected. The text box is not multiline and I can see not logical explanation for this, acceptbuttons work on all other forms in the solution.

我确实需要帮助,这是一个主要问题,因为它大大降低了程序的用户友好性!

I really need help with this, it is a major problem, as it decreases the user friendliness of my program significantly!

非常感谢任何人!

个月?您在错误的论坛上发帖,然后在David发帖,也许等待了太久才能在此论坛发帖.我想,如果我不给您答案,那么您也许会在一小时内从别人那里得到答案.

Months? You posted on the wrong forum then David and maybe waited way too long to post on this one. I suppose if I don't give you an answer then you'll be getting one from someone else within an hour perhaps.


这篇关于表单未捕获Enter键按下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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