以编程方式更改文件夹图标 [英] Change Folder Icon Programmatically
问题描述
我可以通过右键单击来更改文件夹的图标>转到
自定义标签>并选择选择图片。
有谁知道是否可以通过
windows窗体应用程序以编程方式执行此操作?
谢谢
Phil
Phil Hey写道:
我可以通过右键单击更改文件夹的图标>转到
自定义标签>并选择选择图片。
有谁知道是否可以通过
Windows窗体应用程序以编程方式执行此操作?
谢谢
Phil
也许如果您更改注册表项:
hkey_classes_root\folder\DefaultIcon
我认为图标定义存储在哪里。
-
Rinze van Huizen
C-Services Holland bv
Phil Hey写道:
我可以更改图标右键单击文件夹>转到
自定义标签>并选择选择图片。
有谁知道是否可以通过
Windows窗体应用程序以编程方式执行此操作?
谢谢
Phil
也许如果您更改注册表项:
hkey_classes_root\folder\DefaultIcon
我认为图标定义存储在哪里。
-
Rinze van Huizen
C-Services Holland bv
>也许如果您更改注册表项:hkey_classes_root\folder\DefaultIcon
我认为图标定义存储在哪里。
-
是的,但是我不想改变所有文件夹只是某些文件夹,谢谢
无论如何
Phil
Hi,
I can change the icon for a folder by right clicking on it > going to the
customize tab > and selecting Choose Picture.
Does anyone know if it is possible to do this programmatically from a
windows forms application?
Thanks
Phil
Phil Hey wrote:
Hi,
I can change the icon for a folder by right clicking on it > going to the
customize tab > and selecting Choose Picture.
Does anyone know if it is possible to do this programmatically from a
windows forms application?
Thanks
Phil
Maybe if you change the registry entry at:
hkey_classes_root\folder\DefaultIcon
That where I think the icon definition is stored.
--
Rinze van Huizen
C-Services Holland b.v.
Phil Hey wrote:
Hi,
I can change the icon for a folder by right clicking on it > going to the
customize tab > and selecting Choose Picture.
Does anyone know if it is possible to do this programmatically from a
windows forms application?
Thanks
Phil
Maybe if you change the registry entry at:
hkey_classes_root\folder\DefaultIcon
That where I think the icon definition is stored.
--
Rinze van Huizen
C-Services Holland b.v.
> Maybe if you change the registry entry at:hkey_classes_root\folder\DefaultIcon
That where I think the icon definition is stored.
--
Yes, but I dont want to change all the folders just certain ones, thanks
anyway
Phil
这篇关于以编程方式更改文件夹图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!