Avatar of afeistel2
afeistel2
 asked on

clear text boxs in vb programming

I am currently working on a program and I want to make it where the output text box clears every time there is a change in the input text box how can I do this?
Visual Basic Classic

Avatar of undefined
Last Comment
Martin Liss

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mike Tomlinson

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Mike Tomlinson

Here's a VBA/VB6 example:
Private Sub txtInput_Change()
    txtOutput.Text = ""
End Sub

Open in new window

afeistel2

ASKER
I'm using vb 2010 Express.
Mike Tomlinson

Then the first example should be helpful.  It requires two TextBoxes, one called "txtInput" and the other called "txtOutput".  Just place that code into the form.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Martin Liss

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.