473,748 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# app icon in windows explorer

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.
Nov 16 '05 #1
5 3610
Click Project - Properties.

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

Cheers,
Phil.

"WRH" wrote:
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.

Nov 16 '05 #2
WRH
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)

"Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in message
news:42******** *************** ***********@mic rosoft.com...
Click Project - Properties.

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

Cheers,
Phil.

"WRH" wrote:
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.

Nov 16 '05 #3
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.

"WRH" wrote:
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)

"Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in message
news:42******** *************** ***********@mic rosoft.com...
Click Project - Properties.

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

Cheers,
Phil.

"WRH" wrote:
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.


Nov 16 '05 #4
WRH
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.

"Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in message
news:FE******** *************** ***********@mic rosoft.com...
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.

"WRH" wrote:
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)

"Phil Williams" <Ph**********@d iscussions.micr osoft.com> wrote in message
news:42******** *************** ***********@mic rosoft.com...
> Click Project - Properties.
>
> From the Property Pages select Common Properties - General and have a
> look
> at Application Icon.
>
> Cheers,
> Phil.
>
> "WRH" wrote:
>
>> 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.
>>
>>
>>


Nov 16 '05 #5
Is it possible to set the application icon also programatically (I would
like to change it dynamically, from within my application) ?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1974
by: .pd. | last post by:
Hi - I created an icon in VS.NET 2003. I did nothing more than Project-> New Item->Icon File and then used the paint tools to draw it. Then I saved the file. In Windows Explorer, the icon is not displayed next to the file. Just what appears to be the default icon that appears when you select the Icon File template from the Add New Item dialog. If I include the icon in an image-list, the same thing happens.
3
6579
by: scoobydoo | last post by:
hi, I have a problem displaying icons at the right colour depthin a ListView. I've made an icon file, (using IconWorkshop 5), it has 3 icons within it. A 32x32 32bpp XP style icon, a 32x32 32bpp non-xp icon (no transparency), and a 16x16 version. I add these icons to an ImageList, which is then assigned to the LargeImageList property of the ListView.
2
2012
by: Alexander Keßler | last post by:
Hi, I want to programm some kind of Explorer like the Windows Explorer. And I want to know how can i get the same Icons/Symbols for the files and directories like the Windows Explorer uses. Example: The Icon for the Desktop.
7
7324
by: Alexander Keßler | last post by:
Hi, I asked u this morning: --------------------------------------- I want to programm some kind of Explorer like the Windows Explorer. And I want to know how can i get the same Icons/Symbols for the files and directories like the Windows Explorer uses. Example:
3
4093
by: Dennis | last post by:
I have a bitmap and make the color transparent; mybitmap.MakeTransparent(Color.Black) When I save it as a Icon, the black color is not transparent. However, if I save it as a bitmap then display it using windows explorer, the black color is in fact transparent. Could it be that the bitmap is not an alpha bitmap that causes the icon to not have the black color transparent? --
1
1412
by: Jon Okie | last post by:
I have a class inherited from component with a specialized designer. I would like to know how I can customize the icon that appears next to my class name in the solution explorer. Right now, the only icon that will appear is the Component icon which is the same for any class inherited from Component. For example, I would like to know how Visual Studio knows to change the icon in the solution explorer when a class inherits from...
4
6552
by: randy1200 | last post by:
I have a Windows application that previously had the company logo "MyCompany.ico" added to the upper left-most corner. The company has since issued a new version of "MyCompany.ico" that looks completely different. I overwrote the old ico file with the new ico file and re-ran the program. I still see the old logo at run-time. I right-clicked the project-> Add Existing Item-> added the new ico file. I set the build action to Embedded...
3
7934
by: Patrick Dugan | last post by:
I am using VS2005 (vb) and I have a program that starts when Windows boots up. Occasionally the icon that should appear in the system tray does not show up. The program is still running in memory but the tray icon is not there. If I start the program after Windows has booted up the icon shows every time. I am assuming that the reason is due to the icon being created before the system tray is loaded/running. I have used a timer with...
2
1608
by: \(O\)enone | last post by:
I wish to be able to copy a form's icon into a picturebox, in a similar way to how the Windows Taskbar copies each form's icon into each of its task panels. I can easily read out the icon of each form by querying the .Icon property. However, when I use the Graphics.DrawIcon method to draw this into my picturebox, it is clearly the "large" version of the icon that is being drawn. When I draw it with a size of 16x16 pixels, the icon is...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9326
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8245
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4877
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.