如何将一个表单的控件复制到另一个表单

编程入门 行业动态 更新时间:2024-10-10 15:28:29
本文介绍了如何将一个表单的控件复制到另一个表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何将一个表单的控件复制到另一个表单?

how do i copy the controls of one form to another?

推荐答案

您需要遍历Forms控件集合,msdn.microsoft/en-us/library/ system.windows.forms.control.controls(v = vs.110).aspx [ ^ ]然后开始为新表单创建和添加新控件。 我建议您找到一种不同的方式来完成您的需要。 You would need to iterate through the Forms controls collection, msdn.microsoft/en-us/library/system.windows.forms.control.controls(v=vs.110).aspx[^] and then start creating and adding new controls to the new form. I suggest you find a different way to accomplish what you need.

更多推荐

如何将一个表单的控件复制到另一个表单

本文发布于:2023-11-02 10:00:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1552081.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表单   控件   如何将

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!