Doubt in windows form
I have a text box to accept number of childrens ,how to limit its value to 10 in windows form
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 11, 2015, 2:48 AM EDT
if(int.Parse(numberBox.Text))>10)
{
MessageBox.Show("cant be greater than 10");
}
Akhil GargRank #772 · 3K reputationPosted Apr 11, 2015, 3:14 AM EDT