如何使用visualstudio在Windows应用程序中设置图标

I want to add an icon to my application. I have added an icon resource. and its working file for the first icon. That means after I have compiled, the 16x16 icon of the exe file is same as the icon file used. but when the explorer window is zoomed to large icon size, then the icon of the exe file vanishes and another blank default icon is displayed.

How to set icon for large as well as small size display?

#0

From your comments, it sounds like you have multiple icon files set for your project. That's not going to work the way you want, or at least it's the really hard way of doing it.

The simple way is to let the operating system handle it for you. Create a single icon file that contains multiple icon sizes. 16x16, 32x32, 48x48, and 256x256 are the minimum sizes needed for current versions of Windows, but you can certainly add more (like 24x24 or 128x128) to improve pixel fidelity at those sizes if desired.

You can use Visual Studio to create the icons. Opening an .ico file should automatically open its icon resource editor. But I personally find it difficult or cumbersome to use. I highly recommend using a third-party program like IcoFX to create your icons and push pixels around.

推荐文章

想知道如何从.dat文件读入对象

想知道如何从.dat文件读入对象

推荐文章

结构内动态变长C

结构内动态变长C

推荐文章

Drupal7:在本地任务菜单上添加“添加新列表”(创建内容)链接

Drupal7:在本地任务菜单上添加“添加新列表”(创建内容)链接

推荐文章

Macvim,关闭倒数第二个选项卡后颜色模式消失

Macvim,关闭倒数第二个选项卡后颜色模式消失

推荐文章

是否可以在包渐晕图中使用非导入包?

是否可以在包渐晕图中使用非导入包?

推荐文章

状态对象一次并检索多个属性

状态对象一次并检索多个属性

推荐文章

防止复选框被选中/取消选中

防止复选框被选中/取消选中

推荐文章

有什么服务可以让用户为ios应用程序创建一个帐户?

有什么服务可以让用户为ios应用程序创建一个帐户?

推荐文章

jQuery以错误的顺序洗牌div块

jQuery以错误的顺序洗牌div块

推荐文章

使用VS2010的动态晶体报告Vb.net版

使用VS2010的动态晶体报告Vb.net版

推荐文章

缩略图显示问题

缩略图显示问题

推荐文章

flash对象未在safari中显示

flash对象未在safari中显示

推荐文章

Django表单验证失败

Django表单验证失败

推荐文章

通过坐标获取单元格

通过坐标获取单元格

推荐文章

SQL中的通配符搜索

SQL中的通配符搜索

推荐文章

在每个选择中都有(nolock)-NHibernate

在每个选择中都有(nolock)-NHibernate