AppIcon not shown

D

dbuchanan

VB.NET, WinForms

I set the Application icon in the Property pages dialog box and it was
imported into the project. When I run the application the icon does not
appear. What am I doing wrong?
 
H

Herfried K. Wagner [MVP]

dbuchanan said:
I set the Application icon in the Property pages dialog box and it was
imported into the project. When I run the application the icon does not
appear.

Where do you expect the icon to appear? If you want it to appear as a
form's icon, assign it to the form's 'Icon' property.
 
T

Tim Wilson

Are you asking about the application icon (set in the project properties) or
are you asking about the icon that appears in the top-left corner of each
Form (Icon property of each Form)? It sounds like your setting the
application icon and expecting it to appear in the top-left corner (system
menu box) of the Form. If you want to change the top-left icon of the Form
then set the Form's "Icon" property.
 
D

dbuchanan

I am talking about the Application Icon (set in the project properties)
that should appear in the taskbar tray at the bottom of the screen.

I have set a vaid icon. It was copied into the project folder, but it
does not appear in the taskbar tray when the application opens - only
the default icon is shown. Why?

Do I have to wait until I actually deploy the application, or should it
also appear when I run the application on the development machine
during development and testing?

It doesn't!

Help me out.

Thank you,
Doug
 
T

Tim Wilson

Do you have the appropriate size within the icon file? Try creating an icon
file with at least a 16x16 and 32x32 image to see if that helps.
 
D

dbuchanan

I have tried both 16x16 and 32 x 32 Icons with no success.
I have even tried borrowing exiting windows icons with no success.

I've closed, opened, rebuild.. Nothing works!
 
T

Tim Wilson

The application icon is used for the output file. This can be seen within
windows explorer. If you want to see the icon appear in the task bar, then
you'll need to set the Icon property of the Form to contain an icon with a
16x16 image. This works fine for me using VS.Net 2003 and .Net 1.1. An icon
file can contain multiple formats. So it would be recommended that you have
both a 16x16 and 32x32 format within the icon file that you assign to the
Icon property of the Form. You can create an icon file using VS. Net 2003
and edit the formats that it contains using the icon editor.
 

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