Solved

Check if Textbox is Null

Posted on 2004-10-13
2
225 Views
Last Modified: 2011-10-03
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
Comment
Question by:daverichardson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
RaisinJ earned 50 total points
ID: 12303543
If editSalesOrder.Text.Trim & "" = "" Then
     MsgBox("Please Enter Sales Order")
End If
0
 

Author Comment

by:daverichardson
ID: 12303580
That works great thanks

Dave
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question