I have one form called:
MyControlContainerForm ccf
and a main form called:
SolidForm sf
and I am adding all the controls inside an instance of new MyControlContainerForm ()
to SolidForm
, using:
sf.Controls.Add ( Control )
but when I remove them using:
sf.Controls.Remove ( Control )
they are gone from MyControlContainerForm
instance as well.
Why? And how do I prevent this?
I want to be able to add MyControlContainerForm
controls whenever I want, without initializing MyControlContainerForm
every time, just once.