将文本写入文本框 [英] write text to a text box

查看:147
本文介绍了将文本写入文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何编写代码将数据写入窗口式应用程序中的文本框,以及如何将相同的数据复制到同一程序中的其他文本框中。?

how can write code to write data to a text-box in window-form apps and and how can i copy the same data to other text box in the same program.??

推荐答案

textbox1.text = "abc"; //write data in textbox else runtime you can write data in textbox using keyboard



复制textbox2中的textbox1值...

in textbox1'的 textchanged 事件......


to copy textbox1 value in textbox2...
in textbox1''s textchanged event...

textbox2.text = textbox1.text;



快乐编码!

:)


Happy Coding!
:)


这篇关于将文本写入文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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