Solved

change title bar icon on a form

Posted on 2002-07-02
2
1,371 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
Comment Utility
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
Comment Utility
Hi Erin,

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

Smg.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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 This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now