Hello ....
I want to add numerical value in textbox . if numerical value will '0' then it should diplay the error please help me.
Thanx in Advance
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
Priyaranjan K SRank #45 · 32.5K reputationPosted Oct 13, 2015, 1:01 AM EDT
Hi Kishan,
{
if (txtNumber.Text.Length == "0")
{
MessageBox.Show("You cannot input 0");
}
}
Rupali ShindeRank #539 · 4.5K reputationPosted Oct 14, 2015, 4:36 AM EDT