如何获取窗体的所有控件的值并使用c#连接它 [英] How to get the value of all control of form and concate it using c#

查看:73
本文介绍了如何获取窗体的所有控件的值并使用c#连接它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

有谁能告诉我..

如何获取表格的所有控件的值并使用c#连接它?

hi guys,
can anyone tell me ..
How to get the value of all control of form and concate it using c#?

推荐答案

您可以使用 foreach 循环来迭代所有子控件。
You can use a foreach loop to iterate all the child controls.


您可以如果所有子控件都在单个容器中,则使用foreach循环,但如果您使用多个容器,则还必须查看这些控件。
You can use a foreach loop if all child controls in single container but if you are using multiple containers then you have to also look inside these controls.


这篇关于如何获取窗体的所有控件的值并使用c#连接它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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