954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You