I would've used Try Parse but i don't want to use the value, i just want to check if its an integer or not.
if (txtCardNumber.TextLength < 16 || txtCardNumber.TextLength > 16)
{
MessageBox.Show("Please ensure that your card number is 16 digits long and in the correct format!");
}