Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • 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
 or
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.

0
MaryD
Asked:
MaryD
  • 2
1 Solution
 
MirkwoodCommented:
What does it do? Does it raise an error or what.

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

didn't recognize the word .remove
0
 
MirkwoodCommented:
Since I seem to have answered the question.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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