How do i destroy a control at runtime ?
Printable View
How do i destroy a control at runtime ?
It depends how the control was added to the form.
If you used the Controls.Add method then use the Controls.Remove method.
If you used the Load method use the Unload method.
If the control was added at design time you cannot remove it at runtime.