Solved

multiselect-listbox

Posted on 1998-01-02
2
711 Views
Last Modified: 2010-04-04
How can I select/deselect all elements of a multiselect-listbox in Delphi 2.

Please help!

Tobi
0
Comment
Question by:Tobi
2 Comments
 
LVL 2

Accepted Solution

by:
mvz121697 earned 50 total points
Comment Utility
for i := 0 to (Listbox1.Items.Count - 1) do
    ListBox1.Selected[i]:=true;

0
 

Expert Comment

by:AK
Comment Utility
And before:  ListBox1.MultySelect := True;
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

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

14 Experts available now in Live!

Get 1:1 Help Now