You can use TryParse for each type, as karthic_85 suggests. TryParse will return true if the parse was successful. It will return false if the parse wasn't successful. So you can use if with that.
Superguppie.
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.
superguppie
All-Star
48225 Points
8679 Posts
Re: type Of textbox
May 11, 2012 02:52 PM|LINK
You can use TryParse for each type, as karthic_85 suggests. TryParse will return true if the parse was successful. It will return false if the parse wasn't successful. So you can use if with that.
Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
When all you've got is a Hammer, Every Problem looks like a Nail. Michael Swain.