Solved

Check if Textbox is Null

Posted on 2004-10-13
2
218 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
2 Comments
 
LVL 6

Accepted Solution

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

Author Comment

by:daverichardson
Comment Utility
That works great thanks

Dave
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now