How to get the associated icon from a network share file

后端 未结 5 1433
深忆病人
深忆病人 2020-12-07 00:21

I am using Icon.ExtractAssociatedIcon to get the icon of a file , that a user selects, in an openfiledialog.

THe problem is if the user selects an icon from a netw

5条回答
  •  囚心锁ツ
    2020-12-07 00:53

    Another option would be to copy the file the user selects to their %TEMP% and use Icon.ExtractAssociatedIcon there. Just remember to cleanup after yourself.

    Obviously not a great solution if you're supporting LARGE files!

提交回复
热议问题