ico WINFORM confusion

G

Guest

In the Studio I edited the app.ico.
The ico file property says is is saved at the project level
When I navigate there with explorer, I have a plain white app.ic

When I run the application - debug, it still shows the plain white icon
If I go to the object bin folder, the application has the app.ico I thought I created

From the property page I point at the ico at the project level, but that is as said earlier a plain white icon

So... what should I be doing to have the icon also display the icon in the corner ? And why does the object / bi
have the ico representing the applic. whereas the debug / bin just has the plain white one. Where is the ico I created ? Why does it say it is being saved at the proj level but ... does not seem to be...???...where is it really, - the obj/ debug app must know... Thanks Andre
 
G

Guest

Hi Andrew,

Thank you for posting in the community!

Actually, I did not fully understand your problem.

What does "The ico file property says is is saved at the project level"
mean? Actually, in VS.net IDE, the App.ico is default placed in the
project's root directory(The same with the .sln, .csproj file). Is this
your meanning of "project level"?

But in your statement, why "App.ico" is in "object bin folder" or "debug /
bin"? So, I am completely confised.

For the default app.ico, it should have been added into the solution
explorer. You can view it. And when you double-click it, you should can
view it correctly(With icon editor).

For your problem, I can not reproduce out. Have you created a new project
and view the icon correctly?

If the project still exist, you may first explain it more details(clearly)
for me, then provide me the steps to reproduce your problem. Then I will
help you.

Also, you may capture a screen shoot for me to see your problem(In this
way, I can understand well).

==============================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

Guest

When I create an icon - edit the app.ico in a winform, it seems to me the app.ico has 2 ( or more views ). The image I edit will show up if I look the app.ico with windows explorer and right mouse click for properties. The image I edited also shows up when I view the application ( .EXE ) in the object /bin directory - and sometimes in the debug/bin's EXE.

I can drag the app.ico off from the project level where I edited it and the application still will show the image I edited. So I gather it is bound to the exe the same way the .cs files are compiled. ( the app.ico is only needed during compiling ). But when I run the application, the form's icon property has been assigned the app.ico. But the form shows a plain white face, not the image I see when I edited - not the image you see when you view the EXE in the object bin directory

How can get my application to use the image I edited instead of the white one. I dont see a way to post the icon or a screen shot although I am tempted to make one and put it on a web site, but I think this is a common issue. ( Or is my Visual Studio environment goofed up ? ) Thanks Andre
[ I am also sending this from my home PC to see if I can reply from seach... instead of the way I have to at work ]
 
F

Felix Wang

Hi Andrew,

Thanks for your clarification. As far as I know, we have 2 kinds of icons
for Windows Form applications:

1. The Application Icon.
2. The Form Icon.

Regarding the Application Icon, it will be shown when we see the EXE file
in the Windows Explorer. To change it, we can right click the Windows
Application projoect in the Solution Explorer and select "Properties". Then
we can change the "Application Icon" under the category "Common Properties"
| "General".

Regarding the Form Icons, they are shown on the taskbar when we open the
Forms. They are also shown on the left upper corner of the Forms. To change
the Form Icon, we can click the blank area of the form in the Designer and
change the "Icon" property in the Properties window.

From your description, it seems to me that you may have only changed the
Application Icon. I would suggest that we change the Form icon as well and
see whether it helps or not.

I hope the information I have provided is useful to you. If you have any
concerns or new findnigs regarding this issue, please feel free to post
here.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
F

Felix Wang

Hi Andrew,

Thanks for your update. I believe that I understand what you mean this
time. Let me elaborate a little bit more.

As far as the ICO file is concerned, it may store different Image Types,
e.g. 16 * 16 16 Colors, 32 * 32 16 Colors and so on. By default, when we
create a new ICO file in VS.Net and open it for editing, the Image Type is
32 * 32 16 Colors. However, when we run the application, the icon shown on
the taskbar is the 16 * 16 version. As a result, if we have modified the 32
* 32 version of the icon, but left the 16 * 16 version untouched, we may
observe that the pictures shown are different.

To modify the 16 * 16 version of the icon, the following steps are for your
reference:

1. Double click the ICO file in your Solution Explorer to open it for
editing.

2. Open the "Image" menu of VS.Net IDE, select "Current Icon Image Types" |
"16 * 16, 16 Colors".

3. If we do not have the 16 * 16 version, we can select "Image" | "New
Image Type" to add one.

Please give it a try and see whether this helps or not. Should you have any
concerns or new findings, please don't hesitate to let me know.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
F

Felix Wang

Hi Andrew,

Thanks for your feedback. I am glad to hear that my suggestion helps. If
there is anything else I can do for you, please feel free to post here.

Have a nice day!

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top