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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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