Trying to make sure that a mask text box is filled correctly. Tried this with no luck:
No matter if the entry is 'x xxx-xxxx' or 'xxx xxx-xxxx' the code throws an error.
Thanks for the help.
Code:
If mskPhone.Text <> "(xxx) xxx-xxxx" Then
MessageBox.Show("Please enter phone data in this format 'xxx xxx-xxxx'", "Wrong Fromat", MessageBoxButtons.OK, MessageBoxIcon.Error)
Exit Sub
End If
Thanks for the help.