Solved

clear text boxs in vb programming

Posted on 2012-03-10
6
169 Views
Last Modified: 2012-06-21
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?
0
Comment
Question by:afeistel2
  • 3
6 Comments
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 37705646
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
 
LVL 85

Expert Comment

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

Open in new window

0
 

Author Comment

by:afeistel2
ID: 37705778
I'm using vb 2010 Express.
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 37705799
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
 
LVL 46

Expert Comment

by:Martin Liss
ID: 37820874
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question