Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ICons In Listview

Status
Not open for further replies.

jopholck

Programmer
Oct 23, 2006
5
0
0
DK
Hello
How can i get file-type Icons into a listview ?
I can get the filetype Icon but i cannot put it into the listview.
 
You need to look in MSDN for the Imagelist Control, you load the control with your image files (eitehr dynamically, or at design time) and then link the image control to the listview.

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
Thank you mattKnight
I have already done that with me own Icons, but it must be icons drawn from the registry and shell.dll.
I can get the icons out for the apropriate filetype but i cannot put it into my Imagelist control for the listview.

By the way
I have been skydiving for 15 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top