Solved

EASY POINTS!

Posted on 1998-01-20
3
175 Views
Last Modified: 2010-04-04
How do I select from a lists box and have it appear in an editbox?  Such as have a lists of items and double click that item and have it appear in the editbox. Example would be nice.  Need answer ASAP if possible.

Thanks
0
Comment
Question by:aj85
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
millerw earned 50 total points
ID: 1357173
All you have to do is goto the Event page of the Object inspector and double click on OnDblClick event.  Then type the following code into it with your components names replaceing Listbox1 and Edit1:

procedure TForm1.ListBox1DblClick(Sender: TObject);
begin
     Edit1.TExt := Listbox1.Items[Listbox1.ItemIndex];
end;

0
 

Author Comment

by:aj85
ID: 1357174
Thank you for your answer!
0
 

Author Comment

by:aj85
ID: 1357175
Thank you for your answer!
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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

728 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