如何使用C#将文件夹类型图标保存在内存中 [英] How to save folder type icon in memory using C#

查看:202
本文介绍了如何使用C#将文件夹类型图标保存在内存中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.
其实我的情况是这样的:
每次打开表单时,文件夹图标符号都会更改,而一旦关闭,文件夹图标符号将更改为上一个符号..
怎么做..
我当时是在打开窗体的时候将文件夹图标符号更改为新的文件夹图标符号的...但是我不知道如何将其更改为以前的文件夹图标符号..
如果有人知道,请让我知道...
在此先感谢...

Hi to all..
Actually my scenario like this:
When ever a form opens, at that time, the folder icon symbol will change and when ever it is closed, the folder icon symbol will change to previous symbol..
How to do this..
I did when form opened at that time folder icon symbol changed to new folder icon symbol... But I didn''t get it how to change to previous folder icon symbol..
If any body knows please let me know...
Thanks in advance...

推荐答案

这是您要追求的吗?

表格aForm = new Form();
aForm.Icon = this.Icon;
aForm.Show();
is this what you''re after?

Form aForm = new Form();
aForm.Icon = this.Icon;
aForm.Show();


这篇关于如何使用C#将文件夹类型图标保存在内存中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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