Solved

EASY POINTS!

Posted on 1998-01-20
3
174 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 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