更改安装项目中软件的图标 [英] change icon for software in setup project

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

问题描述

嗨 请提供有关软件图标的帮助.
如何使用专用图标为软件创建安装文件,以便将其安装在其他机器上,并且该图标将显示在桌面或开始菜单中.
感谢

Hi please help about icon for software.
how to create setup file for software with exclusive icon so that it will instal on other machin and that icon will show in desktop or start menu .
thanks

推荐答案

在解决方案资源管理器窗口中右键单击启动项目节点,然后选择属性选项.它将显示项目的属性页.您可以从通用属性->更改应用程序图标.一般->应用程序图标.请注意,这是将与应用程序的可执行文件及其快捷方式一起附加的应用程序图标.要更改应用程序各个表单的图标,请通过编辑表单的icon属性来选择图标.
Right click the startup project node in the solution explorer window and select the properties option. It will show the property pages for the project. You can change the application icon from Common Properties -> General -> Application Icon. Note that this is the icon for the application that will be attached with its executable file and shortcuts to it. To change the icon of the individual forms of your application, select the icon by editing the icon property of your form.


1.创建一个表示您的图标的ico图像文件. (Google是您的朋友:-))
2.将它添加到资源文件夹中的项目中,将新创建的ico文件的构建操作设置为Content.
3.在应用程序项目"属性中,有一个图标"设置选项,将其设置为新添加的ico图像.
4.将资源(.resx)文件添加到您的项目中,打开它,单击字符串"下拉列表,选择图标"选项.现在,将ico图像从项目中拖放到此处.
5.在基本表单或默认表单中,将Icon属性设置为新添加的资源图像,如下所示:

1. Create an ico image file representing your Icon. (Google is your friend :-))
2. Add it to your project in a resources folder, set the build action of the newly created ico file to Content.
3. In your Application projects properties, there is an Icon setting option, set this to your newly added ico image.
4. Add a resources(.resx) file to your project, open it, click ''String'' drop down, select the ''Icons'' option. Now drag your ico image from your project and drop it here.
5. In your base form or default form set the Icon property to your newly added resource image like so...

public Default()
{
    InitializeComponent();

    Icon = MyProjects.Projects.TestApp.App.Properties.Resources.MyNewIcon;
}



你应该很好:-)

这就是我的方法:-)希望对您有所帮助.



You should be good to go :-)

This is the way I did it :-) hope this helps.


请按照以下步骤操作:-

在解决方案资源管理器窗口中右键单击您的项目名称,然后
选择属性"选项.

在应用程序"选项卡中,转到资源",您将在其中找到以下说明指定如何管理应用程序资源:".

在其中,您将找到被选中的图标单选按钮,您将在其中找到文本为(默认图标)"的组合框.

在组合框的右侧,您将找到文本为"..."的按钮".单击该按钮,然后选择图标文件的位置,然后可以在按钮的右侧查看图标.

而已.该图标将显示在应用程序设置",桌面快捷方式"等上.
Follow the Steps:-

Right click on the name of your project in the solution explorer window and
select the Properties Option.

In Application Tab go to the Resources where you will find the Following description "Specify how application resources will be managed:".

In that you will find Icon Radio Button selected, there you will find combo box in which Text will be "(Default Icon)"

on Right side of combo box you will find Button where text is "...". Click That button and select the location of your icon File and you can view your icon on right side of button.

That''s it. And that Icon will be seen on Application Setup, Desktop Shortcut, etc.


这篇关于更改安装项目中软件的图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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