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

remove icon from listview

I have tried the following but I can't get either one to work. Any suggestions.

MyStuff = listview1.listitems.remove() does not like .remove
Set MyStuff = listview1.listitems
MyStuff.Remove 2   does not like .remove

I can use
ListView1.ListItems(IconCnt).Ghosted = rs.rdoColumns("view_index").Value 'True
and after the user logs out and comes back into the program the icon is not there. But I would like to remove the icon immediately.

  • 2
1 Solution
What does it do? Does it raise an error or what.

listview1.listitems.remove listview1.selecteditem.index
should remove the selected item.
MaryDAuthor Commented:
Thanks that worked, I was getting an error before on the remove.

didn't recognize the word .remove
Since I seem to have answered the question.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

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