extracting master icon to imagelist

J

Johnny

Hi all. I am trying to populate an imagelist with icons of the an opened
stencil document. That imagelist in term will be used as masters are added to
the listview control. Any idea? Thanks.
 
J

JuneTheSecond

You might open icon editor of the Visio master, when you right-click
a master icon and a select menu and sub-menu.
Then you might select-all and copy the whole Image of the icon.
In the Visual studio window, you might add icon file to the project
and open icon editor, and then you might paste the image.
The Icon might be added to the imagelist, then the icon could be
displayed on the listview by the program, for ex,.
ListView1.Items.Add("test", 0)
ListView1.LargeImageList = ImageList1
ListView1.Items(0).ImageIndex = 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top