To reset Multiple Controls Using Param keyword

Pradeep Raturi
Posted by Pradeep Raturi under Windows Forms category on | Points: 40 | Views : 1788
Form Code

private void button_click(object sender EventsArgs e)
{
obj.reset(textBox1,textBox2,textBox3,textBox4,.....................)
}

class Code
public void reset(Param TextBox[] t)
{
foreach(TextBox c int t)
{
c.Clear();
}
}

Comments or Responses

Login to post response