Solved

Change content of Edit1

Posted on 1998-02-15
2
216 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

776 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