Setting the application icon

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have written a C# application in VS 2003 and deployed it on my iPAQ. I
want to change the icon that shows up in file explorer though. I have tried
the obvious:
I added a new icon file to the project and edited it. I then set the
project properties|general|application icon to the file. I've tried setting
the icon file's Build Action to Embedded resource and Content. No matter
what I try, I get an image of a dog-earred paper with 20 squares on it (the
unedited icon file). I've tried resetting the iPAQ also. This seems like it
should be a simple thing to do - what am I doing wrong?

Thank you,
Joe
 
Your *single* icon file has *both* a 16x16 and 32x32 format icon in it?

-Chris
 
The only place you need to set it is in the Project properties dialog (you
don't need to add it separately as an embedded resource). Ensure your icon
file has suitable size and color depth versions for the device. Normally
this means at least 32x32 and 16x16 icons at 256 colors within the single
..ico file - perhaps you have edited one size but have a default image in the
other?.
Secondly, Pocket PC does cache the icons so if you have an item on your
start menu you'll need to soft reset the device after deploying the new exe
for the icon to be refreshed.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
I only have one icon file and it is 32 x 32. I don't see a way to make a 16
x 16 one. How do you do it?

Thanks,
Joe
 
If you're using Visual Studio, then right click the left hand part of the
icon editing screen (with the icon thumbnail) and select "Current icon image
types" by default an icon is created with the default 16x16 and 32x32, so if
you've only customise the 32x32 version you'll need to do the same with the
16x16 icon and save and rebuild the project.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
Thanks Peter and Chris,

I figured out how to get to the 16 x 16 version. Kind of un-obvious how to
get there at least to me. I had to right click in the icon editor and select
current icon image types. Is there a more obvious way? Anyway, now I see
the right icon.

Thanks again,
Joe
 
Joe Thompson said:
Thanks Peter and Chris,

I figured out how to get to the 16 x 16 version. Kind of un-obvious how
to
get there at least to me. I had to right click in the icon editor and
select
current icon image types. Is there a more obvious way?

Yes, in the menu there is also an item Current Image Type
 
*Way* unobvious. In fact I first used the icon editor in Studio this week,
and after that I'll likely not again. It was a reminder of why I bought a
3rd party editor (Axialis AXIcons).

-Chris
 
Back
Top