Clone container control and its child controls at run time

I have a Windows Forms control container (like a group box or panel) with some child controls. Now I want to copy / clone this container control to get an exact copy of it at runtime. How can I achieve this with C #?

What I want to do is:

GroupBox groupNewBox;
groupBox1.CloneTo(groupNewBox);
+3
source share
1 answer

- IClonable. , , Windows , , , IClonable.

+2

Source: https://habr.com/ru/post/1777907/


All Articles