仅从上面的WinForms酒吧,而不是从任务栏删除图标 [英] Remove icon only from Winforms top bar and not from Taskbar

查看:114
本文介绍了仅从上面的WinForms酒吧,而不是从任务栏删除图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有的WinForms 应用程序和属性 ShowIcon ShowInTaskbat 设置为true:

I have Winforms application and the properties ShowIcon and ShowInTaskbat set to true:

this.ShowIcon = true;
this.ShowInTaskbar = true;

目前,我可以看到在两个地点我的​​应用程序图标:

Currently I can see my application icon in 2 locations:

  1. 在任务栏(我想)。
  2. 在我的应用程序(在这里我想删除图标的地方)的顶部。

如果我的财产 ShowIcon 设置为false,我不能看到图标也可以在任务栏。 是否有可能只是从应用程序顶部栏删除图标?

If I set the property ShowIcon to false I cannot see the icon also in the task bar. Is it possible to remove the icon only from the application top bar ?

推荐答案

从项目属性更改应用程序图标的形式,那么它就会出现在任务栏

Change the application icon from the project properties form, then it will appear in the taskbar

这篇关于仅从上面的WinForms酒吧,而不是从任务栏删除图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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