• 0

[VB2005] Check if masked text box is empty


Question

I have a masked text box for an ip address which has a mask like this:

"000 , 000 , 000 , 000"

the preview gives me something like this:

" . . . "

(both without the quotes)

Is there a simple way to check if this textbox has been filled or not? I tried:

If Me.MaskedTextBox.Text = Nothing Then
End If

Only to find ou that this would never work of course... Is there a simple or way to do it or I'll have to split the text by the dot and check the 4 parts if they are filled or not?

I would prefer to do this in one line if possible and not processing the whole text to see if it's empty. Is there a way?

8 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.