There is a form with a tab control, which has a tab page element. This application is designed in such a way that it is if you drag and drop a chart control (which are listed as icons in a sidebar) the chart gets populated with data, and shows a graph.
We have a button which should make a clone of that tabpage and show itself in another form. The hurdle is, how to clone the user control, with all its data, etc. I've been through the following articles
- http://www.codeproject.com/KB/miscctrl/ControlCloneTst.aspx
- http://social.msdn.microsoft.com/forums/en-US/winformsdesigner/thread/459063d5-658f-4b64-a940-d99355fffe56
- http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/b426e182-c6d1-4c8f-8bc0-194613e2be6e
- http://stackoverflow.com/questions/2201341/clone-winform-control
I feel reflection is the best bet. But how do I handle creating a clone of a user control in this case?