doubt in windows form
I have a text box to accept number of childrens ,how to limit its value to 10 in windows form
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Khargesh RajputPosted Apr 11, 2015, 6:48 AM
if(int.Parse(numberBox.Text))>10)
{
MessageBox.Show("cant be greater than 10");
}
Akhil GargPosted Apr 11, 2015, 7:14 AM