在更改文本时,它也可以在单击按钮的代码上执行 [英] On text change, it is also executing on button click code

查看:77
本文介绍了在更改文本时,它也可以在单击按钮的代码上执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序中以文本更改形式编写代码,并且我还具有按钮和文件上载控件.文本更改后,我还需要光标保留在同一文本框中.但是光标在跳跃,调试时我注意到它也在执行按钮单击代码.

I am writing code in text change in my application and i also have button and a file upload controls. I need cursor to remain in same textbox after text change also. But the cursor is jumping and on debuging i noticed that it is also executing the button click code.
Please any one suggest me.

推荐答案

检查按钮单击功能是否已分配给文本框更改事件.
Check whether the button click function is assigned to the text box change event.


这篇关于在更改文本时,它也可以在单击按钮的代码上执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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