Textbox Clear function
private void Initailizetxt()//---form load call
{
TextBox[] txtZero = { txtQTYgrosswt, txtLessWt1, txtLessWt2, txtLessWt3, txtLessWt4, txtLessWt5,txtTotalLessWt,txtNetWt };
for (int i = 0; i < txtZero.Length; i++)
{
txtZero[i].Text = "0";
}
}
taken all text box in textbox type array then check the length the clear all thex box or initialize value...
private void Initailizetxt()//---form load call
{
TextBox[] txtZero = { txtQTYgrosswt, txtLessWt1, txtLessWt2, txtLessWt3, txtLessWt4, txtLessWt5,txtTotalLessWt,txtNetWt };
for (int i = 0; i < txtZero.Length; i++)
{
txtZero[i].Text = "";//-- textbox blank or SYSTEM.Clear()
}
}
nice blog yar...Fashion Accessories Agra
ReplyDelete