更改字符串文本时触发事件 [英] Firing up the event when string text is changed

查看:64
本文介绍了更改字符串文本时触发事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有这种方法吗?

我在GUI上有一个文本框.我正在看另一个类的字符串值.每当更改字符串值时,我都想更新文本框值.

Is there such a way to do this?

I have a textbox on the GUI.   I''m watching the string value from the other class. Whenever the string value is changed, I would like to update the textbox value.

推荐答案

Good Day Blubbo

您的文本框有一个事件"Textchanged"使用它,它可以完全满足您的要求.

希望它会有所帮助.

Good Day Blubbo

Your Textbox has an event "Textchanged" use it, it does exactly what you want.

Hope it helps.


这篇关于更改字符串文本时触发事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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