check empty(textbox)

A

Agnes

in the textbox, if the user press "space bar". textbox.textlength return
non-zero answer,
I need to declare a variable strTextbox = trim(textbox.text) , then check
strtextbox = ""
Any simple method to check the textbox ???
thanks a lot
 
J

Jeff Johnson [MVP: VB]

in the textbox, if the user press "space bar". textbox.textlength return
non-zero answer,
I need to declare a variable strTextbox = trim(textbox.text) , then check
strtextbox = ""
Any simple method to check the textbox ???

If TextBox.Text.Trim().Length = 0 Then
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top