G
Guest
Hi everybody!
I have a listview and a treeview in a form . With an OpenDialog I let the
user select multiple files and then these files are added to the listview
with the complete pathname, while they are added to the treeview without the
path (only file name). I'd like the user would be able to remove multiple
items selecting filenames from the listview.
So, items should be removed both from the listview and the treeview.
How can I do this? For the listview I'm using the following code:
ListView1.Items.RemoveAt(ListView1.SelectedItems(0).Index())
but it just removes one item, and not multiple selection!
While for the treeview I'm trying some snippet but I can't get any good
result.
Any help or link to any sample would be appreciated..
Progalex
I have a listview and a treeview in a form . With an OpenDialog I let the
user select multiple files and then these files are added to the listview
with the complete pathname, while they are added to the treeview without the
path (only file name). I'd like the user would be able to remove multiple
items selecting filenames from the listview.
So, items should be removed both from the listview and the treeview.
How can I do this? For the listview I'm using the following code:
ListView1.Items.RemoveAt(ListView1.SelectedItems(0).Index())
but it just removes one item, and not multiple selection!
While for the treeview I'm trying some snippet but I can't get any good
result.
Any help or link to any sample would be appreciated..
Progalex