in windows application i want to apply validation checks.i hv tried one for empty textbox
i.e.
if (textBox1.Text == "")
{
MessageBox.Show ("Enter phone number", "Error in Input", MessageBoxButto ns.OK, MessageBoxIcon. Information);
this.textBox1.C lear();
this.textBox1.F ocus();
return;
}
i.e.
if (textBox1.Text == "")
{
MessageBox.Show ("Enter phone number", "Error in Input", MessageBoxButto ns.OK, MessageBoxIcon. Information);
this.textBox1.C lear();
this.textBox1.F ocus();
return;
}
Comment