Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何访问系统图标,如;文件夹"&引用;文件";等_C#_Winforms_Treeview - Fatal编程技术网

C# 如何访问系统图标,如;文件夹"&引用;文件";等

C# 如何访问系统图标,如;文件夹"&引用;文件";等,c#,winforms,treeview,C#,Winforms,Treeview,我想在treeview中使用标准图标,但我不确定在哪里可以获得它们?我尝试了不同的地方,如资源等,但没有运气。 谢谢在Windows 7中,它们作为资源保存在C:\Windows\system32\imageres.dll中 我认为旧版本的windows在user32.dll中有资源,它们作为资源存储在%SystemRoot%\system32\SHELL32.dll中 如何在c#中提取图标 另请看这个问题:如果您使用treeview显示文件夹/驱动器/文件,那么最好使用系统映像列表/SHGet

我想在treeview中使用标准图标,但我不确定在哪里可以获得它们?我尝试了不同的地方,如资源等,但没有运气。
谢谢

在Windows 7中,它们作为资源保存在C:\Windows\system32\imageres.dll中


我认为旧版本的windows在user32.dll中有资源,它们作为资源存储在
%SystemRoot%\system32\SHELL32.dll中

如何在c#中提取图标


另请看这个问题:

如果您使用treeview显示文件夹/驱动器/文件,那么最好使用系统映像列表/SHGetFileInfo。这样,您可以在所有Windows版本上获得“本机”映像