Application Icon

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
 
J

Joe Cool

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"?
 
E

eBob.com

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
 
T

Ty

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
 
T

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
 
J

Joe Cool

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.
 
T

Ty

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
 
E

eBob.com

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top