- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
private bool IsInt(object ValueToCheck)
{
int Dummy = new int();
string InputValue = Convert.ToString(ValueToCheck);
//If user enters 45.00 This should not be allowed
//User must enter numbers without .00
if(InputValue.Contains("."))
return false;
bool Int = int.TryParse(InputValue, System.Globalization.NumberStyles.Any, null, out Dummy);
return Int;
}