将图像添加到Windows窗体 [英] Add image to windows form

查看:88
本文介绍了将图像添加到Windows窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我刚刚完成了我的第一个Windows窗体应用程序。我想知道如何设置我发布后将在桌面上显示的表单的图像。我知道如何设置表单的图标,但这只是用于启动菜单和任务栏,我想知道如何设置桌面图像...提前感谢你

Hi all, i just finished my first windows form application. I would like to know how to set the image of the form that will be displayed on the desktop after i publish it. I know how to set the icon of the form but that is just for the start up menu and taskbar, i would like to know how to know how to set the desktop image...thanking you in advance

推荐答案

在桌面上创建新的快捷方式时,它会从EXE文件中获取图标。

要指定它应该使用的图标,请在VS中打开项目,然后双击解决方案资源管理器窗格中的属性分支。

在显示的页面中,选择应用程序选项卡,并确保选中图标和清单单选按钮。将Icon指向.ICO文件,然后重建项目。
When you create a new shortcut on the desktop, it gets the icon from the EXE file.
To specify the icon it should use, open the project in VS, and double click on the "Properties" branch in the Solution Explorer pane.
In the page that results, select the "Application" tab, and make sure the "Icon and manifest" radio button is selected. Point the "Icon" at your .ICO file, and rebuild your project.


这篇关于将图像添加到Windows窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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