插入值以立即响应时如何创建文本框 [英] How to make a textbox when I insert a value to respond immediately

查看:53
本文介绍了插入值以立即响应时如何创建文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如..



我希望当我在文本框中插入mybe数字2以便立即查看另外两个文本框时,当我在一个文本框中插入4时文本框查看另外4个文本框..



提前谢谢.....

For example..

I want when I insert mybe a number "2" on a textbox to view two more textboxesmore immediately , when I insert 4 on a textbox to view another 4 textboxes..

Thanks in advance.....

推荐答案

你应该挂钩TextBox的TextChanged事件,只要在文本框中输入一些文本就会触发。



在处理程序中,您可以添加更多文本的功能盒子。



https://msdn.microsoft.com/en-us/library/system.windows.forms.control.textchanged [ ^ ]
You should hook to TextChanged event of TextBox, that fires as soon as some text is entered in the text box.

In the handler you can put your functionality of adding more text boxes.

https://msdn.microsoft.com/en-us/library/system.windows.forms.control.textchanged[^]


这篇关于插入值以立即响应时如何创建文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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