文本在运行时更改C# [英] text change at runtime C#
本文介绍了文本在运行时更改C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在文本框中检测运行时文本的更改。
例如,我如何检测是否有人更改了计算器中的文本,以便我可以禁用或启用=按钮。
How can I detect a change of text at runtime in a text box.
As for example how can i detect if someone has changed the text in the calculator, so that i can disable or enable the "=" button.
推荐答案
转到.NET论坛。
怎么能我在运行时在文本框中检测到文本的更改。
例如,我如何检测是否有人更改了计算器中的文本,以便我可以禁用或启用" ="按钮。
How can I detect a change of text at runtime in a text box.
As for example how can i detect if someone has changed the text in the calculator, so that i can disable or enable the "=" button.
您是否尝试过editValueChanged事件?
欢呼
Have you tried the editValueChanged event?
cheers
这是一个Windows或基于Web的应用程序?
文本框有你可以看的keydown / textchanged事件。
Is this a windows or web-based application?
Textboxes have keydown/textchanged events that you can watch.
这篇关于文本在运行时更改C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文