Solved

filter the filelistbox with listbox

Posted on 2003-10-25
4
526 Views
Last Modified: 2010-04-05
Hi, i was wondering if it is possible that we can filter the filelistbox with this
kind of situtation. I have a filelistbox that displays a file and a lisbox. and
two buttons namely add wich adds the file in the listbox that is selected by the user and remove which deletes the file that have been appended to the listbox. all i want is that when the user clicks the add the file that have been
appended to the listbox will not appear in the filelistbox. and vice versa. if the user will remove the file that have been appended to the list box then the
filelistbox will refresh and it will display the file that have been deleted by the user in the listbox.. hope you can help me.. thanks..
0
Comment
Question by:orafans
4 Comments
 
LVL 8

Accepted Solution

by:
gmayo earned 250 total points
ID: 9619230
I think FileListBox automatically populates its lists so you cannot control it. Maybe you can set the FileType to not show hidden files, and when a file is selected, set it to hidden and refresh the file list. To make it visible again, set the file's attributes to not hidden.

Or you could have two standard ListBoxes and populate the listboxes yourself using FindFirst/FindNext/FindClose.

Geoff M.
0
 
LVL 4

Expert Comment

by:nestorua
ID: 9619294
HI,
I agree with gmayo.
The FileListBox you use to show the real situation in the chosen folder.
So adding filenames to FileListBox is a mixture of real files and some files that do not exist in the folder.
Maybe you better explain what really you want (what a problem) .
Sincerely,
Nestorua.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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
Delphi component that can load a DLL in design time? 8 92
code issue 8 179
Delphi selector screen 2 91
How to debug For loops? 3 60
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…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

685 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