Solved

Check if Textbox is Null

Posted on 2004-10-13
2
220 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

823 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