• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 535
  • Last Modified:

filter the filelistbox with listbox

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
orafans
Asked:
orafans
1 Solution
 
gmayoCommented:
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
 
nestoruaCommented:
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now