well.. if you enter a letter (or a space, or a comma) it will try to cast the text to a number and fail, ("a" is not a number), so you have to choice:
Get from internet a textbox that only accepts numbers or,
try to verify is the box only has numbers, and if not reject the change (you can do this in the keydown event, see wich key the user press, and if not a number cancel the press)...
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========