Solved

filter the filelistbox with listbox

Posted on 2003-10-25
4
516 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

15 Experts available now in Live!

Get 1:1 Help Now