Use a Panel control and add the controls as children of the panel. When you need to clear the controls, just remove all the controls inside the panel:
Code:_panel.Controls.Clear();
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: Removing Controls from formThreaded View
|
Click Here to Expand Forum to Full Width |