C# Remove Textboxes During Runtime
Hi,
Does anyone no if it is possible to remove controls like a textbox during runtime?
wingers1290
Junior Poster in Training
89 posts since May 2009
Reputation Points: 12
Solved Threads: 0
A Form has a Controls collection.
To Add a control at runtime you say : Myform.Controls.Add(MyTextbox);
To remove it you use Myform.Controls.Remove(MyTextbox);
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661