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);
source
share