Use NumericUpDown control, this will force the user to enter either int or decimal.
To force user enter int value:
NumericUpDown.DecimalPlaces = 0;
To force user enter decimal value:
NumericUpDown.DecimalPlaces = 2;
This will save your effort to validate, verify and filter the user input.