473,698 Members | 2,833 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to change application programmaticaly

In my c-sharp project, how can i change the application icon property
programmaticall y depending on the configuration selected. i.e. i want to give
different icon file path to the application target file based on the
configuration selected. Plz give an example. Or how can i change the
application file (exe file) icon using command line.
Dec 4 '06 #1
1 1472


"Avnish" <Av****@discuss ions.microsoft. comwrote in message
news:89******** *************** ***********@mic rosoft.com...
In my c-sharp project, how can i change the application icon property
programmaticall y depending on the configuration selected. i.e. i want to
give
different icon file path to the application target file based on the
configuration selected. Plz give an example. Or how can i change the
application file (exe file) icon using command line.
It would be interesting to see if this is possibly without changing the exe
directly. One way to possibly do this is using 2 or more exe's, and
swapping the primary exe with the correct exe depending on the configuration
selected.

HTH,
Mythran
Dec 4 '06 #2

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

Similar topics

0
1740
by: Boaz Ben-Porat | last post by:
Does anyone knows how to programmaticaly change a user`s password on Windows NT/2K/XP using C# ? Is there a sample code ? TIA Boaz Ben-Porat Milestone A/S Denmark
2
2311
by: Flo | last post by:
Hello I want to be able to show/hide an application that is running. When i am getting the handles corresponding to an MS Office application (Excel for example), it appears that i get a handle for the Excel MDI application which got MDI children corresponding to the document(s) opened. Therefore, i am able to hide the Excel window and the documents it contains. But there also is a handle corresponding to the button which appears in the...
5
2932
by: who be dat? | last post by:
Hello all. I'm writing an application that is writing trace information that can be viewed in trace.axd. I would like to rename this and use a different name specific to my application. I know the name of this is set in machine.config. I was hoping it would be possible to change this in web.config. I got it to work, kind of. Good news is I can change the name in my web.config file. Bad news is that trace.axd still works meaning I can...
2
1975
by: david | last post by:
When you right click on a file in windows, there is a property of type of file, which seems to associate this file with an application for it. For example, when you double click on a .doc file, the microsoft word application is activiated and open the file. I have the following question: When I instored my image files in my computer, the system assign the default application to files automatically so that whenever I double click any...
0
891
by: Gilles Lambert | last post by:
Hi, I've done a report with the Designer of Crystal Report and it's ok. But the source file (MDB file) will have to move and i d'ont see how to define this info (the connection string would be even better) programmaticaly. All i've founded is the SetDataSource method on ReportDocument control which accept a DataSet ...
2
1931
by: Erik Juhlin | last post by:
I want to edit a web.confgi file Programmaticaly. I can´t use the System.Configuration.ConfigurationSettings.AppSettings.Add becuase the web.config file i want to edit does belongs to another web site. I have no problems open the web.config-file as stream or XMLDocument.Load, but as sone as I try to save web.config it says "cannot save.. because the file is used by another process" or something like that. I guess that the IIS is...
2
2222
by: Pieter | last post by:
Hi, I'm using the Settings.settings of VB.NET to define a Connectionstring (Scope = application). When I deploy the Solution, and change this Setting in the app.config-file, it seems that itdoesn't affect the Application at all! It still uses the old value. Are the Settings.Setting hardcoded somewhere in the application? I can't find any documentation of this subject, or anyway how I should do
5
7869
by: Elena | last post by:
I need the VB.NET code to change the header/footer of an Excel spread sheet, ASAP. I am doing it through a VB application. I can change the ranges/cell values using code, but I do not know how to change things outside of the cell ranges. I will try and post in an Excel group, but i do not need to change it in a worksheet, I need to change it through a VB application. For example, I am using this code to change values in certain cells: ...
2
1190
by: PSiegmann | last post by:
Hello group.. Is there a way to change web.config entries at runtime? I haven't found a class for that. I have around 20 entries in the web.config, and I want a add a configuration menu into my app, so that the administrator can change some of the settings, without editing the web.config directly with a text editor.
0
8683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8611
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
9031
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...
0
7741
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...
0
5867
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
4372
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
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 we have to send another system
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.