473,769 Members | 6,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Icon in WindowApplicati on

I have written an WindowApplicati on (in C# with VS7) . It target file is
MyApp.exe. It's default icon (display in Windows Explorer) is not pretty. I
replaced file app.ico in project directory with my icon. However, the
default icon is not changed .
Can anyone help me to change the icon of my appication.
Thanks in advance
Nov 15 '05 #1
3 3437
1) Make sure that your project properties has the ApplicationIcon property
set correctly to your App.ico

2) If you just edited the App.ico file, make sure you have altered all the
different icon types within it (an .ico file can contain multiple icons.) to
do this, open up the icon file in VS.NET, right-click in the editor away
anywhere *outside* of the image itself, and look at the menu item "current
icon image types". Look at each type listed to verify that it has been
changed.


" Hai Ly Hoang [MT00KSTN]" <Re**********@M ail.com> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
I have written an WindowApplicati on (in C# with VS7) . It target file is
MyApp.exe. It's default icon (display in Windows Explorer) is not pretty. I replaced file app.ico in project directory with my icon. However, the
default icon is not changed .
Can anyone help me to change the icon of my appication.
Thanks in advance

Nov 15 '05 #2
Hi,

Maybe do this:
in MSDN (in your VC# IDE via Help | Index)
select "Walkthroug hs, deployment"
select "deployment "
select "Deploying a Windows Application"

Or maybe do this:
In your VC# IDE: Project|bottom line in the list = your appl in which
your Main() resides|Click on "Applicatio n Icon"|
Click on little "..." box on the right on the same line |
In "Browse for file ..." click on your icon file.

Patrick.

Nov 15 '05 #3
HKM
Right click on the Project Name in the VS, choose the respective icon file.
Rebuild the solution. This should change the exe file icon.

Regards,
-HKM

" Hai Ly Hoang [MT00KSTN]" <Re**********@M ail.com> wrote in message news:<#2******* ******@tk2msftn gp13.phx.gbl>.. .
I have written an WindowApplicati on (in C# with VS7) . It target file is
MyApp.exe. It's default icon (display in Windows Explorer) is not pretty. I
replaced file app.ico in project directory with my icon. However, the
default icon is not changed .
Can anyone help me to change the icon of my appication.
Thanks in advance

Nov 15 '05 #4

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

Similar topics

2
9447
by: Vic | last post by:
I am trying to change an icon associated with my application's main form and the application itself. 1. I selected my main form in IDE "Solution" tab and went to "Properties" window. 2. I found "Icon" property, browsed for and selected a new icon. 3. I noticed the icon changed on my form 4. Ran my application and sure thing, the new icon replaced the default .NET icon.
4
3732
by: Terry | last post by:
There are a number of things about using unmanaged resources in Windows Forms programming that is unclear to me. In C++, if you loaded an icon resource using "ExtractIcon()", the resource was valid until you called "DestroyIcon()". If you didn't, you had a leak. In C#, I need to load icons from unmanaged programs (.exe, dll) at run time and I want to make sure I'm not leaking resources, but it's not clear to me how to insure that I'm...
8
2282
by: Adrian | last post by:
How do I put an icon on a form using code? Thank you.
2
2816
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 C#. The only significant problem that I have encountered in the conversion is this one - extracting an icon from the 'KTEntryPoint' program into the software suite and placing that icon on the PC Desktop.
14
2142
by: Kishan Hathiwala | last post by:
Hi i have kept a statusbar in the form with panels = true. and total there 3 panels. whenever i click on the 3rd panel a menu appears showing online and offline and either is enable at a time. once i clic on online its icon changes to connecticon (assume its there) and whenever i click on offline, its icon changes to disconnection (assume this is also there). now the problem is i have kept one icon for connection (ie when its online -...
0
1834
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 under certain conditions, but the exe is still listed in the processes leading me to believe the app is still running. It fires up perfectly on boot, however if the user logs off, and then logs back in (not reboot), or if the system goes to...
5
3173
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 database. Therefore the file doesnt really exist on the user's hard drive. All the file extracting techniques require that I have the actual file on the drive in order to get an icon for it. There is a workaround for this: i could create dummy files with...
3
2855
by: Nina | last post by:
Hi there, I assigned icon for a window's form using form's Icon property at design time. Now I want to change the icon. I tried to replace the old icon with the new icon using form's Icon property. Somehow in the form's property window's Icon property has changed to new icon, but on the form it still uses the old icon. Then I tried to set Icon property to None, and it doesn't allow me to do it. I don't know why and how can I fix...
4
6555
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...
0
9423
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
10045
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
9994
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
9863
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
8872
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
7409
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
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3959
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
3562
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.