dannytan
March 20th, 2003, 12:52 AM
Hi all. I would like to know if it's possible to accept numbers only in textboxes? In VC++ it's possible. But i can't seem to find in the properties that accept only numbers in the properties window.
If it's not possible, then i would like to know how do i validate in the textboxes that the entered data are right format. If i were to check the textboxes by converting it to number using Int32.Parse method after a button has been clicked, it will throw an exception of invalid format. I would like to know how do i check the textboxes without throwinng an exception. Thanks
If it's not possible, then i would like to know how do i validate in the textboxes that the entered data are right format. If i were to check the textboxes by converting it to number using Int32.Parse method after a button has been clicked, it will throw an exception of invalid format. I would like to know how do i check the textboxes without throwinng an exception. Thanks