HI,Everyone GOOD NOON
I am creating a WINDOWS form using C# which have text box like part.no ( NUMBER ONLY NO Alphabets) i have used the following coding to accept number only .
private void Partno_KeyPress(object sender, KeyPressEventArgs e)
{
//e.Handled = (!char.IsDigit(e.KeyChar)) && (!char.IsControl(e.KeyChar));
}
Now i need to display a text in a label(label1) like :"please enter the part no "if no value is given in the partno field. if number is entered then the label should be " ".
Please suggest whehter it's possible if so how r where can i find the solution
can anybody help me out