Click here to Skip to main content
15,888,106 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
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
Posted

1 solution

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



a better choice might be to do this interaction with the "notify icon" and hide this forms taskbar button.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900