Solved

Change content of Edit1

Posted on 1998-02-15
2
221 Views
Last Modified: 2010-04-10
Hi, how do I change what Edit1 (that is an Editbox) content is??  I will have a button and when the user clicks on it I want it to change Edit1 to "unregistered" and change Edit2 to "unregistered".  How do I do that????
0
Comment
Question by:4099aol
2 Comments
 
LVL 3

Accepted Solution

by:
q2guo earned 10 total points
ID: 1182257
So, inside the OnClick event of the button.
you should write

AnsiString S("unregistered");
Edit1->Text = S;
Edit2->Text = S;


0
 

Author Comment

by:4099aol
ID: 1182258
thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

733 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