Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1410
  • Last Modified:

change title bar icon on a form

If you change the Icon property of a windows Form object, the system menu icon should be updated with the icon that you specified...  This is my understanding of the Icon property. This worked just fine in VB6.  However, in C# I just can't seem to change the icon on the title bar of my form.  Actually, it just changes to an icon with a blank page on it, instead of the icon which I specified. I have tried including the icon as a resource, and simply browsing for an icon and setting it to the Icon property.  The result is always the same.  I get an icon with a picture of a blank page on it.
Please help.
0
erin010
Asked:
erin010
1 Solution
 
AzmodanCommented:
Interesting
it work fine with my C#. it also works fine in VB.net
i tried with more than one icon.. and it still works.

maybe there is something wrong with your C#. The icon is corupted? is not 32x32? try more icons, from the VS.net grahpics folder...
0
 
smeggheadCommented:
Hi Erin,

Can you post the code from the form please...

Smg.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now