I am creating a treeview which wil have folder images for directories and want to know if there is a way to access the system image list so that I can display the system default folder image.
Thx
Mark.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no out-of-the-box image list for the system images (they depend on things like the current visual theme). The entry for
SHGetFileInfoat pinvoke.net has a code sample for extracting icons for files (and, I presume, folders). You can use that and dynamically populate anImageListcomponent to get the tree view display the appropriate icons.