Click here to Skip to main content
16,023,224 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have a one textbox and i want to if user enter numric value and click button then messagebox show textbox value but user enter character value or keep textbox blank then messagebox show 0 'zero'
Posted

Use a validation to check if the value entered in the text box is numeric or non-numeric. If it non-numeric show a message box with 0 in it.
 
Share this answer
 
You should also consider not putting your full question in the subject line. There's a subject line provided for a brief subject, and the full post area, for your full question.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900