Solved

EASY POINTS!

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

831 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