OK, so I have a bunch of fields that I need to validate (numeric). Does anyone have sample code of a subroutine where I could just send it the field name and it could test the field for non-numeric value?

In the spirit of 'good programming', this validation code should only exist in one place. In the C# world, would that be a class? I thought I read somewhere that there aren't any 'global' subroutines (like VB)

This is my current (repeated many times) code:

string strScore;
int intScore;
strScore = txtPayment.Text;
bool blnInput;
blnInput = Int32.TryParse(strScore, out intScore);
If (blnInput == false)
.....MessageBox.Show("Field must be numeric", "TVAL", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);