Solved

Very difficult for me ( listbox.delete )

Posted on 1998-12-12
2
145 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
Tviruailstringtree sort multi columns on header click 1 74
Performance of SQL statement 37 124
Convert MS Word document to a PDF file 9 90
RESTRequest Parameter 4 41
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

766 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