Application Icon

  • Thread starter Thread starter Ty
  • Start date Start date
T

Ty

What is the best way to add a icon to a project and where to copy it
in the project folders?

The icon I want to use for my current project I have placed in the bin
\Debug folder and the pointed to it in the project properties page. I
have also added the icon to my project in VS 2008 and set it to be
embedded.

The problem seems to be that when I build the project and then move it
to another PC I have to copy the icon with it and when the PC is
restarted I get an error that the icon cannot be found in the
documentandsettings folder for the user which I'm not really sure why
it would point to there and not the application folder instead.

Help would be appreciated.

Ty
 
What is the best way to add a icon to a project and where to copy it
in the project folders?

The icon I want to use for my current project I have placed in the bin
\Debug folder and the pointed to it in the project properties page. I
have also added the icon to my project in VS 2008 and set it to be
embedded.

The problem seems to be that when I build the project and then move it
to another PC I have to copy the icon with it and when the PC is
restarted I get an error that the icon cannot be found in the
documentandsettings folder for the user which I'm not really sure why
it would point to there and not the application folder instead.

Help would be appreciated.

Ty

How are you "moving the app to another PC"?
 
Hi Ty,

How do you set an icon to be embedded? I need to do that in order to follow
some example code I found on a msft webpage but I cannot find out how to do
it.

Thanks, Bob
 
Bob,
In VS right click on your project in the solution explorer and select
add existing item. The navigate to the icon and added it so it shows
in the solution explorer. Now click on the icon in the solution
explorer so it is selected and then in the properties window below
click in the Build Action box and select Embedded Resource.

Ty
 
How are you "moving the app to another PC"?- Hide quoted text -

- Show quoted text -

I build the project the copy the folder and files created to the PC
and run the exe in the folder. Icons that I have used on forms are not
a problem. It is only the Icon that I want to use as the project exe
icon.

Ty
 
I build the project the copy the folder and files created to the PC
and run the exe in the folder. Icons that I have used on forms are not
a problem. It is only the Icon that I want to use as the project exe
icon.

I accomplish this by making a VS setup and deployment project and add
the icon to the application folder.
 
I accomplish this by making a VS setup and deployment project and add
the icon to the application folder.- Hide quoted text -

- Show quoted text -

I was under the impression that there wasn't a setup and deployment in
VS 2008?

Ty
 
Thank you VERY much Ty. I had found something which mentioned "Build
Action" but I had no idea where to find it.

Thanks again, Bob
 
Back
Top