Solved

change title bar icon on a form

Posted on 2002-07-02
2
1,392 Views
Last Modified: 2012-06-27
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
Comment
Question by:erin010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
Azmodan earned 100 total points
ID: 7124131
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
 
LVL 10

Expert Comment

by:smegghead
ID: 7127446
Hi Erin,

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

Smg.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question