只需一个命令即可更改所有表单的图标 [英] change icon of all forms by only one command

查看:69
本文介绍了只需一个命令即可更改所有表单的图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我的申请表中的所有表格的更改图标,我必须单独申请所有表格。

有任何只用一个命令更改所有表单图标的命令?

谢谢

hello

for change icon of all forms in my application, i have to apply in in all form individually.
is there any command to change icon of all forms by only one command?
thanks

推荐答案

没有内置方式,它需要代码每个表单,或者在创建表单实例时的代码中。



一种方法是创建一个MyForm类,它将Icon设置为构造函数。然后,您从MyForm而不是Form派生所有表单。
There is no built in way, it requires code in either each of your forms, or in the code when you create the form instance.

One way to do it is to create a MyForm class, which sets the Icon in the constructor. You then derive all your forms from MyForm instead of Form.


这篇关于只需一个命令即可更改所有表单的图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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