我如何使用自己的图标? [英] how can i use my own icons ?

查看:136
本文介绍了我如何使用自己的图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在对话框中使用其他图标,这可能吗????

i want different icons in my dialog box , is it possible ????

推荐答案

是的.您需要在资源文件中更新图标
yes. you need to update your icon in resource file


在项目"属性的应用程序"选项卡中
图标->浏览
选择"ICO"文件并重建项目.它将更改exe的图标.

由同一张贴者从另一个答案中添加

使用自定义消息框.这将是另一个Windows窗体,它将由ShowDialog调用.使用您想要在该表单上使用的任何图像.
In Application Tab of Project property
Icon--> Browse
Select "ICO" file and Rebuild the project. It will change the Icone of exe.

Addition from another answer by the same poster

Use Custom MessageBox. It will be just a another windows Form which will be called by ShowDialog. Use whatever image you want to use on that form.


从"Icon"更改它.....浏览:选择"ICO"文件,您就完成了!
Change it from "Icon" ..... Browse : Select the "ICO" File and you are done !


这篇关于我如何使用自己的图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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