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
 
Top