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.
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.
Rupali ShindePosted Oct 14, 2015, 8:36 AM
Priyaranjan K SPosted Oct 13, 2015, 5:01 AM
Hi Kishan,
{
if (txtNumber.Text.Length == "0")
{
MessageBox.Show("You cannot input 0");
}
}