Solved

change title bar icon on a form

Posted on 2002-07-02
2
1,389 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

829 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