I am trying to program a text box to only accept numbers. I assume you would program the textchanged event of the text box to ignore the keystroke if it is something other than a number? Is that correct or is there a better way to do it?