Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 14973

VS 2017 Check If Masked TextBox is Empty

$
0
0
I was using this code below with a regular textbox to check if it was empty and was working fine but now I have updated the regular textbox to a maskedtextbox since it was the better choice for this situation.

Code:

If String.IsNullOrEmpty(PHONE.Text) Then
MsgBox("Please Enter Your Phone Number..")

What can I use instead?
I was assuming that I can use MaskCompleted.Equals but I do not know how to finish the statement..
how can I make it so that if it equals False? I tried
If PHONE.MaskCompleted.Equals = False Then

but this does not work.. it seems that it should but does not, and I am not sure how to complete it.

Viewing all articles
Browse latest Browse all 14973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>