Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

erase the data in a textbox ?

erase the data in a textbox ?

erase the data in a textbox ?

whats the code to check a textbox to see if text has been
erased by a key down , drag thru to hilite and punch delete

RE: erase the data in a textbox ?


There's probably a clever way to do this (Alt255's the clever one) but you could always just save the contents of the text box and then, when the user has finished with it, compare the current contents of the text box with yor saved copy.

Do you need to specifically trap when the user has deleted the text box all in one go?


Mike Lacey
Cargill's Corporate Web Site

RE: erase the data in a textbox ?

If you initialize the text box with one space, you can use the text change event to see if the text box length is changed to zero.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close