Solved

Very difficult for me ( listbox.delete )

Posted on 1998-12-12
2
143 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
ID: 1350772
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
ID: 1350773
Thanks..... this was a excelent answer.....
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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 this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

805 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