以编程方式更改文件夹图标 [英] Change Folder Icon Programmatically

查看:87
本文介绍了以编程方式更改文件夹图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我可以通过右键单击来更改文件夹的图标>转到

自定义标签>并选择选择图片。

有谁知道是否可以通过

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆