How to get the icon of System Folder?

  • Thread starter Thread starter yxq
  • Start date Start date
Y

yxq

Hello
I want to get system folder icon like in Explorer using vb.net, for
example My Documents...

How to do?

Thanks
 
I want to get system folder icon like in Explorer using vb.net, for
example My Documents...

How to do?

See if this helps:

HOW TO: Use the SHGetFileInfo Function to Get the Icons That Are
Associated with Files in Visual Basic .NET
http://support.microsoft.com/?kbid=319340

Note that the SHFILEINFO declaration in the article is incorrect, it
should have the following attribute applied to it

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)>



Mattias
 
Hello
Thank your answer, but i want to get FOLDER icon not FILE icon.

Thanks
 
Thank your answer, but i want to get FOLDER icon not FILE icon.

I believe the code works for folders as well. Did you try it?



Mattias
 

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

Back
Top