C# app icon in windows explorer

  • Thread starter Thread starter WRH
  • Start date Start date
W

WRH

Hello
This must be on a faq somewhere but despite a lot of googling
I still can't resolve this issue: I have a C# app and I would like
to see its icon displayed when the exe file is viewed in windows
explorer. The icon is an embedded resource and displays normally
in the title bar when the app is opened.
 
Click Project - Properties.

From the Property Pages select Common Properties - General and have a look
at Application Icon.

Cheers,
Phil.
 
Thanks for the prompt response... still no joy however :(

I do set the Application Icon...it displays correctly when
I open the app; the problem is its not displayed when
the app is listed in the windows explorer (XP, SP2)
(When I create a shortcut to the app and look at the
shortcuts properties it says that the exe contains no
icons)
 
I'm using VS2003, XP and SP2 and it works fine.

Correct me if I'm wrong but the icon you see in the corner of the form and
on the taskbar is the form's icon, not the application's icon?

All the Best,
Phil.
 
Thanks again for your response. I finally solved my problem...
it turns out that the form icon can be 32X32 but the app icon
cannot...I made a 16X16 for the app icon and it now works
fine.
 
Is it possible to set the application icon also programatically (I would
like to change it dynamically, from within my application) ?
 
Back
Top