更改任务栏上显示的应用程序标题和图标,而不更改Form.Text和Form.Icon [英] Changing the the application title and icon displayed on taskbar without changing the Form.Text and Form.Icon

查看:137
本文介绍了更改任务栏上显示的应用程序标题和图标,而不更改Form.Text和Form.Icon的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任务似乎很简单,但是我找不到简单的方法来完成它.

我想在Win7任务栏上更改应用程序图标和标题,而不更改Form.Text和Form.Icon.

缓和自定义边框似乎很痛苦(尤其是它可能会干扰Glass/Aero).

另一种方法是使用MainForm.IsMdi = true和MainForm.ShowOnTaskbar = false,将伪子表单隐藏在主表单中.但是它不是很优雅,肯定会破坏Aero.

我在这里缺少更简单的东西吗?

我将不胜感激.

感谢

The task seems to be a simple one but I cannot find a simple way to accomplish it.

I want to change application icon and title on Win7 taskbar without changing the Form.Text and Form.Icon.

Painiting custom border seems to be a pain (particularly as it may interfere with the Glass/Aero).

Another approach is to use the MainForm.IsMdi = true and MainForm.ShowOnTaskbar = false with dummy child form hidden behing the main one. But it is not very elegant and definitelly breaks Aero.

Is there something much simpler that I am missing here?

I''ll appreciate any advice.

Thanks

推荐答案

为保持一致,任务栏中的图标是表单上的图标(因此对用户有意义).

如果您想这样做,我想做的唯一方法就是稍作努力".


  • 将在任务栏显示"属性设置为false
  • 创建新表单并强制其保持最小化
  • 根据需要在新表单上更改图标
  • >
For consistency, the icon in your taskbar is the icon on your form (so it makes sense to the user).

If you want to do this, the only way I can think to do is some "slight of hand".


  • Change the "show in taskbar" property to false
  • Create a new form and force it to stay minimized
  • change your icons as you want on your new form


这篇关于更改任务栏上显示的应用程序标题和图标,而不更改Form.Text和Form.Icon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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