Jump to content

Recommended Posts

Posted

I'm new to Visual basic and going through a set of beginner tutorials.

I've made a form with textboxes.

Question: When I scroll through all the textboxes and return to the first one - how do I write the code to say "clear the box and make it empty"

I think it's an If..else statement but after days of frustration and searching online, I still can't find the answer!!

Regards,

Steve


Posted (edited)

slect text box and see the properties

In VB 6.0 remove existing text from Caption property.

In VB2005 remove exsiting text from Text property.

Edited by neo_matrix.rs
Posted

In VB6 caption is for a label not a textbox. There is no caption property for a textbox.

textbox.text="" like ColdFusion said should work for any VB textbox.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...