Home All Groups Group Topic Archive Search About
Author
17 Jun 2009 12:55 PM
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

Author
17 Jun 2009 1:35 PM
Joe Cool
On Jun 17, 8:55 am, Ty <tbar***@lewistownhospital.org> wrote:
Show quoteHide quote
> 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"?
Author
17 Jun 2009 2:29 PM
Ty
On Jun 17, 9:35 am, Joe Cool <joecool1***@live.com> wrote:
Show quoteHide quote
> On Jun 17, 8:55 am, Ty <tbar***@lewistownhospital.org> wrote:
>
>
>
>
>
> > 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"?- 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
Author
17 Jun 2009 3:11 PM
Joe Cool
On Jun 17, 10:29 am, Ty <tbar***@lewistownhospital.org> wrote:
Show quoteHide quote
> On Jun 17, 9:35 am, Joe Cool <joecool1***@live.com> wrote:
>
>
>
>
>
> > On Jun 17, 8:55 am, Ty <tbar***@lewistownhospital.org> wrote:
>
> > > 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"?- 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.
>

I accomplish this by making a VS setup and deployment project and add
the icon to the application folder.
Author
17 Jun 2009 3:17 PM
Ty
On Jun 17, 11:11 am, Joe Cool <joecool1***@live.com> wrote:
Show quoteHide quote
> On Jun 17, 10:29 am, Ty <tbar***@lewistownhospital.org> wrote:
>
>
>
>
>
> > On Jun 17, 9:35 am, Joe Cool <joecool1***@live.com> wrote:
>
> > > On Jun 17, 8:55 am, Ty <tbar***@lewistownhospital.org> wrote:
>
> > > > 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"?- 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.
>
> 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
Author
17 Jun 2009 2:04 PM
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


Show quoteHide quote
"Ty" <tbar***@lewistownhospital.org> wrote in message
news:3047e062-5645-426d-bd3b-1e4141ce28ba@a36g2000yqc.googlegroups.com...
> 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
Author
17 Jun 2009 2:27 PM
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
Author
18 Jun 2009 2:09 AM
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

Show quoteHide quote
"Ty" <tbar***@lewistownhospital.org> wrote in message
news:70912116-e1e5-466b-83b4-b0322907678e@g1g2000yqh.googlegroups.com...
> 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