If your doing the validation when the user tries to exit the control, I guess the simplest way is to use
Validating[
^] event. In that event you could use for example regex to check the input.
NumericUpDown automatically accepts only numbers and the MaskedTextBox has the
Mask[
^] property where you can define a proper mask.