将文本从一个面板文本框复制到另一个面板 [英] copy text from one panel textbox to another

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

问题描述

我有两个面板,每个面板上有100个文本框,但我想将一个面板文本框文本复制到另一个面板文本框,请帮助我如何快速完成,目前我正在使用c#windows form。 

i have two panels with 100 textboxes on each but i want to copy one panel textboxes text to another panel textboxes ,please help me how we can do that quickly ,currently i am working c# windows form . 

两个面板都在同一个表格上。

both panels are on same form .

我正在做这样的代码,但复制需要很长时间......

i am doing such code but it takes much time to copy ...

string IsCheckes ="" ;;

string IsCheckes="";


推荐答案

如果使用panel1,它可能会更快。 Controls.Find和panel2.Controls.Find而不是this.Controls.Find,因为它需要在一组较小的控件中进行搜索。
It will probably be faster if you use panel1.Controls.Find and panel2.Controls.Find instead of this.Controls.Find, because it will need to search among a smaller set of controls.


这篇关于将文本从一个面板文本框复制到另一个面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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