Solved

filter the filelistbox with listbox

Posted on 2003-10-25
4
529 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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