473,471 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do you add system Icon to a WPF App?

complete
11 New Member
How do you add system Icon to a WPF App?

I have an icon made already. How do I add it to the app so that it will represent the application on the desktop, in the minimize system bar, etc..
Jun 1 '10 #1
3 5634
GaryTexmo
1,501 Recognized Expert Top Contributor
I may be wrong (I'm not an expert in WPF) but I'm not sure that there's a global icon for all those things. I believe they're set individually.

A quick google shows that the application icon is set via the Icon property, which should be accessible on the WPF form. I believe there's another property for the executable icon, and if you want it to appear on the system tray you'll likely need to create an object for that.

For example, if it were WinForms, you'd add a NotifyIcon to your form. Perhaps it's something similar with WPF?
Jun 1 '10 #2
ThatThatGuy
449 Recognized Expert Contributor
@complete
Its the same as you do it in Windows applications.
Go to Project Properties --> Application Tab

Down there you'll find an option to change your icon
Jun 1 '10 #3
Plater
7,872 Recognized Expert Expert
If it is indeed the same as a regular windows forms application, then the icon used in the system try(and the alt+tab i think) will be the one assigned to the Icon property of your form. The executable's icon will come from the setting in the properties pages for the application.
http://bytes.com/topic/net/insights/...-setting-icons
Jun 1 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Zeljko | last post by:
Hi, I have a form with a tray icon. However, when I minimize the form, it stays visible - not in the task bar (I have showintaskbar property set to false), but in a form of a rectangle sitting...
1
by: Rookie | last post by:
Hi, In the title bar of the form, there is an icon displayed. How do I get rid of it? I tried programmatically doing : this.Icon=null; (this refers to the form) That didn't work. Is there...
0
by: Chris Martinez via .NET 247 | last post by:
I don't know if you ever got this resolved but I would becurious. The reason you can't get the folder icons is becauseyou are using SHGFI_FILE_ATTRIBUTES. Take that out and use thevalue of 0...
2
by: Dickyb | last post by:
Extracting an Icon and Placing It On The Desktop (C# Language) I constructed a suite of programs in C++ several years ago that handle my financial portfolio, and now I have converted them to...
2
by: SamSpade | last post by:
I found the icons for files and folders using Call SHGetFileInfo(subDir, 0, mSHI, mSHISize, Win32.Shell.SHGFI_ICON) but can't find the system icon for MyComputer. Later I'd like to also find...
0
by: kapcreations | last post by:
I have a system tray app which gets the status of a windows service, and displays the appropriate icon for the status of the service in the systray. the problem I am having is the icon disapears...
5
by: IcingDeath via DotNetMonster.com | last post by:
I am building this SQL Server database app in which i can store files. In order to display files I want to have the app show the associated icon for the extension of the file that is in the...
1
by: joycsharp | last post by:
how to get the system registe icon with the file extension name.
1
by: AdrEsqu | last post by:
I am using the SHGetFileInfo to return the system icon. Is there anyway to return and display the icon with out having to return it to the ListView? I'm using the SHGetFileInfo in my SharePoint...
14
by: Ashutosh Bhawasinka | last post by:
Hi, How can I retrieve the system icon associated with a file/folder so that I can show it in the list view adjacent to the file/folder name? Regards, Ashutosh Bhawasinka
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
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.