How to Create a program Icon in C#

How to Create a program Icon in C#

Post by UG9ld29vZ » Wed, 06 Oct 2004 11:09:02


I would like to create an icon for a program that runs on the Pocket PC.
Does anyone know how this is done. In C++ I can go to resources and create
an icon. I can't seem to find the same functionality in C#. I'm sure
there's an easy way but I can't find it.

Poewood
 
 
 

How to Create a program Icon in C#

Post by Darren Sha » Wed, 06 Oct 2004 11:40:21

Poewood,

You associate an application icon to your Smart Device project in Visual
Studio 2003 on the
Project Properties dialog. This will cause the icon you specify to appear
next to
your Smart Device application's executable name on device. The icon is
included
as an embedded resource in your project.

To create a shortcut on device so that your app's name and icon appear
in the Programs folder in Pocket PC, you edit the .inf file that is
generated
when you generate a CAB file for your project (Build --> Build CAB File).
Edit the last line of the .inf file found in the \obj folder within your
project and
change %CE11% to %CE17% to generate a shortcut in \Window\Start Menu
on device. After you change the .inf file, regenerate your CAB by running
BuildCab.bat.
The inf file and the BuildCab.bat file are found in the \cab folder inside
your
project folder. Now deploy the CAB to device and your shortcut will show up
in \Programs.

-Darren

 
 
 

How to Create a program Icon in C#

Post by Rache » Fri, 28 Jan 2005 00:52:24

I have no problem getting my program icon to show up in the Programs
list but the icon does not show up alongside the shortcut in the Start
Menu for example. How do you associate an icon with these shortcuts?
Rachel
 
 
 

How to Create a program Icon in C#

Post by Chris Tack » Fri, 28 Jan 2005 01:46:16

PPCs cache icons. Soft reset and see if it fixes it.

--
<ctacke/>
www.OpenNETCF.org
Your CF searches start and end here
 
 
 

How to Create a program Icon in C#

Post by Rache » Fri, 28 Jan 2005 04:31:47

Thanks for the advice---actually, I found that the icon itself had to
'versios', a 16X16 and a 32X32. I hadn't changed the look of the 16X16
size so once I did this, my icons showed up both in large and small
form.
 
 
 

How to Create a program Icon in C#

Post by QWJoa » Wed, 15 Mar 2006 06:47:28


I was browsing through the MSDN forums to find out a way to associate an
icon to a Pocket PC application through Visual Studio. I came across your
posts and observed that you were able to do it successfully. I followed your
lead and associated a pre-available .ico file to the Application Icon
property from the GUI and created an MSI but my application in the Pocket PC
still bears the default icon and notthe icon I intended it to be associated
with.
I was hoping to get some guidance from you in this regard. Can I use
an existing ICO file such as the MS.ico (the Visual Studio icon) or do I have
to do something different? ANy help would be greatly appreciated.
 
 
 

How to Create a program Icon in C#

Post by QWJoa » Wed, 15 Mar 2006 06:51:29

I was browsing through the MSDN forums to find out a way to associate an icon
to a Pocket PC application through Visual Studio. I came across your posts
and observed that you were able to do it successfully. I followed your lead
and associated a pre-available .ico file to the Application Icon property
from the GUI and created an MSI but my application in the Pocket PC still
bears the default icon and notthe icon I intended it to be associated with.
I was hoping to get some guidance from you in this regard. Can I use
an existing ICO file such as the MS.ico (the Visual Studio icon) or do I have
to do something different? ANy help would be greatly appreciated.
 
 
 

How to Create a program Icon in C#

Post by cGRzY2h1bG » Wed, 17 Jan 2007 13:26:00

<< Edit the last line of the .inf file found in the \obj folder within your
project and change %CE11% to %CE17% >>

Hmmm. My ini file does not contain that. Could you post the line, in its
edited form? and the section it is in? Maybe its in the [Shortcuts]
section? ... or [RegKeys]? Thanks.
 
 
 

How to Create a program Icon in C#

Post by cGRzY2h1bG » Sun, 21 Jan 2007 05:16:17

There is a very good article, for VS 2005, on installing mobile apps, that
gives a lot of attention to getting the icon to show in the Programs screen
on the device at:

http://www.yqcomputer.com/

1.) You have to have a value in the icon box at:
Right-Click your apps project/ Properties/ Application tab/ Icon (the
article doesnt mention this :-)

2.) the other key is to create a Special Programs Folder, in the Cab maker
project, and put the shortcut to the app in that. Create a Special Folder by
R-Click File System on Target Machine*/ Add Special Folder/ Programs Folder
(the article covers what I am trying to say here very well.)

This article is in VB. The custom actions dll in c# is at
http://www.yqcomputer.com/

* this is the File System View of the Cab maker project.