.Net Tech tips
"Be curious always! For knowledge will not acquire you: you must acquire it."
Pages
27 Jan
Home
About Me
Mahi
ForEach(Minute in MyLife) MyExperience ++;
View my complete profile
Tuesday, May 31, 2011
Clear All Controls Inside a form
foreach (Control ctrl in this.frm1.Controls)
{
if (ctrl is TextBox)
(ctrl as TextBox).Text="";
}
Or move all TextBoxes into Panel, Panel.Controls.Clear(); will work..
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment