Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

Check if Textbox is Null

I need to check if a textbox on my windows form is null, if it is then a message box tells the user.
 
I have tried
If editSalesOrder.text Is DBNull.Value Then
                       MsgBox("Please Enter Sales Order")
            End if
With no success

Dave
0
daverichardson
Asked:
daverichardson
1 Solution
 
RaisinJCommented:
If editSalesOrder.Text.Trim & "" = "" Then
     MsgBox("Please Enter Sales Order")
End If
0
 
daverichardsonAuthor Commented:
That works great thanks

Dave
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now