How can I get the file icon?

How can I get the file icon?

Also how can I get a small file thumbnail?

+7
c #
source share
1 answer

For the corresponding icon, you can use:

string filename = "path-to-file"; Icon icon = System.Drawing.Icon.ExtractAssociatedIcon(filename); 
+8
source share

All Articles