Achievement provides the only real pleasure in life
This built-in function can be used to force user to input numbers:
if (!char.IsNumber(e.KeyPress))
messagebox.show("plz enter numbers only")
also, "decimal.tryparse" can be used to check if the input is a number after input
Posted by SF at 1:10 am
No comments:
Post a Comment