c# isNumeric() or similar

Associate
Joined
17 Oct 2002
Posts
312
Location
herts
hi

how would i check to see if text entered into a text box is numeric before converting to an int type?
also how can i loop through text boxes to do this rather than doing each one seperately.

foreach txtbox
if textbox1.text == "" or not isnumeric
then textbox1.focus
exit loop
loop

i hope you understand what im trying to say

cheers

matt
 
Back
Top Bottom