Solved

Very difficult for me ( listbox.delete )

Posted on 1998-12-12
2
135 Views
Last Modified: 2010-04-04
Hi..
I´m adding items to listbox with checkbox, when i click my checkbox1 then i add his caption to listbox and so on upp to checkbox10.caption. And now when i click any of my checkbox to checked = False then i will delete the line for the checkbox.caption text in listbox ( Thanks......)
0
Comment
Question by:emmi
2 Comments
 
LVL 4

Accepted Solution

by:
dwwang earned 80 total points
Comment Utility
IndexToDelete:Integer;
CheckBoxNCaption:string;

You can set the CheckBoxNCaption value to a checkbox's caption on its OnClick event, then

IndexToDelete:=MyListBox.Items.IndexOf(CheckBoxNCaption);
MyListBox.Items.Delete(IndexToDelete);

Regards,
Wang
0
 

Author Comment

by:emmi
Comment Utility
Thanks..... this was a excelent answer.....
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

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

11 Experts available now in Live!

Get 1:1 Help Now