473,405 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Change Application Icon [ Output file icon]

Hi,

I have created an form based application in c# having some GUI. I have also
added localization support to it due to GUI changes for different
customers.Now the issue I have the Application icon can be set only through
Property page in common properties as is the Output file name. But i need
different icons (output file) for different customers and I have same code
base for all. As far as form icons are concerened they are obtained from
respective resource files. How can I chanage the Application icon on the
basis of Build settings. Is it possible?

Thx.
Avnish.
Dec 7 '06 #1
1 7450
Avnish,

You will only be able to do this in .NET 2.0 and up. Take a look at the
..csproj file for the executable. In it, you will see a tag:

<ApplicationIcon>?</ApplicationIcon>

Where ? is the name of the icon.

What you want to do is create a conditional value there based on other
conditions (you have to set these, obviously) to set the value to the
correct icon.

Take a look at the MSBUILD documentation to see how to do this.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Avnish" <Av****@discussions.microsoft.comwrote in message
news:D2**********************************@microsof t.com...
Hi,

I have created an form based application in c# having some GUI. I have
also
added localization support to it due to GUI changes for different
customers.Now the issue I have the Application icon can be set only
through
Property page in common properties as is the Output file name. But i need
different icons (output file) for different customers and I have same code
base for all. As far as form icons are concerened they are obtained from
respective resource files. How can I chanage the Application icon on the
basis of Build settings. Is it possible?

Thx.
Avnish.

Dec 7 '06 #2

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

Similar topics

0
by: news.skynet.be | last post by:
Hello. I am a beginner at this Java stuff, so bear with me. I have been writing an imaging application as a way of learning Java. I have got little bits working and tied them together in an...
4
by: Tim Jarman | last post by:
Apologies in advance for the long post - I wanted to be sure I included all the relevant details. The answer is probably very, very simple. I am doing something stupid here, but I don't know what...
2
by: ATong | last post by:
A VC.net application, the 3 16777216-color icons, 16*16, 32*32 and 48*48, have been modified, but after rebuild the application, the icon does not change. Should we modify anything else to change...
1
by: Hai Ly Hoang | last post by:
Creating an Windows application with C# (a.exe). My program a.exe has default icon (in Windows Explorer). How to change default icon for my program ? (Certainly, not by creating an shortcuts to...
1
by: Supercox | last post by:
I am on a team programming a VB.NET application (called "Alternate Benefit Calculator" or ABC for short) and I have been preparing our program for deployment. I have several questions pertaining...
4
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...
1
by: Avnish | last post by:
In my c-sharp project, how can i change the application icon property programmatically depending on the configuration selected. i.e. i want to give different icon file path to the application...
1
by: laredotornado | last post by:
Hi, When I save out an HTML file to my desktop (I'm using Windows XP), it saves with the Firefox icon, presumably because I have Firefox as the default application to open my HTML files. Is it...
2
by: bahnfire | last post by:
Hi, I am hoping that I finally have the right group :-) I am using Visual C++ Express 2008 and am trying to change the taskbar icon that I am using (notifyIcon1) as some state changes (button...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...
0
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,...
0
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...

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.