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?
afeistel2Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
What is your environment here?  VBA, VB6, VB.Net?...

Here's a simple VB.Net example:
    Private Sub txtInput_TextChanged(sender As System.Object, e As System.EventArgs) Handles txtInput.TextChanged
        txtOutput.Clear()
    End Sub

Open in new window

0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Here's a VBA/VB6 example:
Private Sub txtInput_Change()
    txtOutput.Text = ""
End Sub

Open in new window

0
 
afeistel2Author Commented:
I'm using vb 2010 Express.
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
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.
0
 
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.