I want to validate two masked textboxes. At least one of them needs to have a value. I have the following code
bool validatePhoneNumbers()
{
bool valid = false;
if (!txtClientFax.MaskCompleted || !txtClientMobile.MaskCompleted)
{
MessageBox.Show("Please enter telephone or mobile number under Client Section");
}
return valid;
}
If i test separately without using || it works. I want to check for both masked textboxes all at once