Solved

change title bar icon on a form

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

13 Experts available now in Live!

Get 1:1 Help Now