Solved

EASY POINTS!

Posted on 1998-01-20
3
167 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
Comment Utility
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
Comment Utility
Thank you for your answer!
0
 

Author Comment

by:aj85
Comment Utility
Thank you for your answer!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
IExtractImage Delphi 14 162
Path  to current project in Delphi. 2 67
code issue 8 84
Delphi Form ownership 4 50
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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now