Adds the specified control to the control collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The method allows you to add Control objects to the end of the control collection.
When overriding in a derived class, be sure to call the base class's method to ensure that the control is added to the collection.
The following code example adds a Control to the Control.ControlCollection of the derived class Panel. The example requires that you have created a Panel control and a Button control on a Form. When the button is clicked, a TextBox control is added to the panel's Control.ControlCollection.