Saturday 8 October 2011

How to Clear all Text Boxes on button Click in windows Application


public void clearAlltextbox(Form fr)
{
foreach(control c in fr.controls)
{
if(c.gettype()==typeof(textbox))
{
((textbox)c).clear();
}
}
}

No comments:

Post a Comment