PC Review


Reply
Thread Tools Rate Thread

check empty(textbox)

 
 
Agnes
Guest
Posts: n/a
 
      9th Aug 2004
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




 
Reply With Quote
 
 
 
 
Jeff Johnson [MVP: VB]
Guest
Posts: n/a
 
      9th Aug 2004

"Agnes" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> 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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Empty TextBox Abdul Shakeel Microsoft Access 1 11th Jun 2008 11:33 AM
Empty TextBox =?Utf-8?B?SWdvciBHLg==?= Microsoft Access Form Coding 1 12th Sep 2006 08:08 PM
check for empty textbox in email validation Xendor Microsoft ASP .NET 2 10th Sep 2004 05:31 PM
How to check the textbox is empty or not ? Agnes Microsoft VB .NET 5 10th May 2004 01:39 PM
check whether a textbox is empty Yuelin Microsoft C# .NET 5 7th Aug 2003 06:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:24 AM.