PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Application Icon and Start Menu

Reply

Application Icon and Start Menu

 
Thread Tools Rate Thread
Old 11-02-2004, 09:00 AM   #1
Tom Couvret
Guest
 
Posts: n/a
Default Application Icon and Start Menu


Hello to all.

I think this must be really simple, and I must be asking the wrong
questions in the search engines, but 2 things...

1) Can someone please help me with how to set the application icon on a
..NET CF app?

What I would like is to set the icon that is shown for the app when you
look under Program Files.

2) I also cant find how to tell it to include a reference to my app in
the startment. I assume its simple - something to do with the .inf or
the .ini file, but again I cant see any simple examples that tell me how
to do it. Of course the icon should again be the same as above.

Normal appologies if its been asked before, etc.

Tom

  Reply With Quote
Old 11-02-2004, 09:39 AM   #2
Peter Foot [MVP]
Guest
 
Posts: n/a
Default Re: Application Icon and Start Menu

Create an Icon (.ico) file with at least a 32x32 256 Color icon and a 16x16
256 Color icon for your app. You can do this using the editor built into
Visual Studio or any third party icon editor. Then in your Visual Studio
project open the project properties. In the Build page Application Icon
property select the .ico file you created. Rebuild and deploy the
application to the device. If you have previously deployed the application
to the device with the default icon you may need to soft-reset to see the
new icon because the icons are cached.

In the default .INF file (your project folder\obj\Release or your project
folder\obj\Debug) Visual Studio creates when you use Build Cab Files there
will be a shortcut created in the Start Menu\Programs folder for your
application. If you open the .inf file you will see this near the bottom
(except with your application name of course)


[Shortcuts]
AccessViewer,0,AccessViewer.exe,%CE11%

if you change the destination to %CE17% this will place the shortcut in
\Windows\Start Menu (or localised equivalent). You can read about these
%CE*% identifiers in the Visual Studio help under "Windows CE Directory
Identifiers". Once you've changed this inf file you'll need to rebuild the
CAB files by running the BuildCab.bat file in the same folder.

Peter

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

"Tom Couvret" <NOTtomcouvret@spamcop.net> wrote in message
news:%23WOvS2H8DHA.1632@TK2MSFTNGP12.phx.gbl...
> Hello to all.
>
> I think this must be really simple, and I must be asking the wrong
> questions in the search engines, but 2 things...
>
> 1) Can someone please help me with how to set the application icon on a
> .NET CF app?
>
> What I would like is to set the icon that is shown for the app when you
> look under Program Files.
>
> 2) I also cant find how to tell it to include a reference to my app in
> the startment. I assume its simple - something to do with the .inf or
> the .ini file, but again I cant see any simple examples that tell me how
> to do it. Of course the icon should again be the same as above.
>
> Normal appologies if its been asked before, etc.
>
> Tom
>



  Reply With Quote
Old 11-02-2004, 09:53 AM   #3
Tom Couvret
Guest
 
Posts: n/a
Default Re: Application Icon and Start Menu

Peter Foot [MVP] wrote:

> Create an Icon (.ico) file with at least a 32x32 256 Color icon and a 16x16
> 256 Color icon for your app. You can do this using the editor built into
> Visual Studio or any third party icon editor. Then in your Visual Studio
> project open the project properties. In the Build page Application Icon
> property select the .ico file you created. Rebuild and deploy the
> application to the device. If you have previously deployed the application
> to the device with the default icon you may need to soft-reset to see the
> new icon because the icons are cached.
>
> In the default .INF file (your project folder\obj\Release or your project
> folder\obj\Debug) Visual Studio creates when you use Build Cab Files there
> will be a shortcut created in the Start Menu\Programs folder for your
> application. If you open the .inf file you will see this near the bottom
> (except with your application name of course)
>
>
> [Shortcuts]
> AccessViewer,0,AccessViewer.exe,%CE11%
>
> if you change the destination to %CE17% this will place the shortcut in
> \Windows\Start Menu (or localised equivalent). You can read about these
> %CE*% identifiers in the Visual Studio help under "Windows CE Directory
> Identifiers". Once you've changed this inf file you'll need to rebuild the
> CAB files by running the BuildCab.bat file in the same folder.
>
> Peter
>

Fantastic. Will try tomorrow, but it looks like exactly what I needed.

Thanks Peter!

  Reply With Quote
Old 11-02-2004, 10:39 AM   #4
Tom Couvret
Guest
 
Posts: n/a
Default Re: Application Icon and Start Menu

Peter Foot [MVP] wrote:

> Create an Icon (.ico) file with at least a 32x32 256 Color icon and a 16x16
> 256 Color icon for your app. You can do this using the editor built into
> Visual Studio or any third party icon editor. Then in your Visual Studio
> project open the project properties. In the Build page Application Icon
> property select the .ico file you created. Rebuild and deploy the
> application to the device. If you have previously deployed the application
> to the device with the default icon you may need to soft-reset to see the
> new icon because the icons are cached.
>
> In the default .INF file (your project folder\obj\Release or your project
> folder\obj\Debug) Visual Studio creates when you use Build Cab Files there
> will be a shortcut created in the Start Menu\Programs folder for your
> application. If you open the .inf file you will see this near the bottom
> (except with your application name of course)
>
>
> [Shortcuts]
> AccessViewer,0,AccessViewer.exe,%CE11%
>
> if you change the destination to %CE17% this will place the shortcut in
> \Windows\Start Menu (or localised equivalent). You can read about these
> %CE*% identifiers in the Visual Studio help under "Windows CE Directory
> Identifiers". Once you've changed this inf file you'll need to rebuild the
> CAB files by running the BuildCab.bat file in the same folder.
>
> Peter
>

Thanks again, Just tested and it works fine.

Highlights one of the most annoying things about the VS.NET IDE - the
two versions of the properties window... right click vs click on the
properties button in the toolbar.

Anyway, Thanks.

  Reply With Quote
Old 19-03-2004, 09:36 PM   #5
=?Utf-8?B?Qm9iIEdyYXk=?=
Guest
 
Posts: n/a
Default Re: Application Icon and Start Menu

Thanks, Peter you were right as rain. I created my icon in the manner you suggested and it worked great! Kinda of a pain when you have to do a soft boot. However, if it works go with it

----- Peter Foot [MVP] wrote: ----

Create an Icon (.ico) file with at least a 32x32 256 Color icon and a 16x1
256 Color icon for your app. You can do this using the editor built int
Visual Studio or any third party icon editor. Then in your Visual Studi
project open the project properties. In the Build page Application Ico
property select the .ico file you created. Rebuild and deploy th
application to the device. If you have previously deployed the applicatio
to the device with the default icon you may need to soft-reset to see th
new icon because the icons are cached

In the default .INF file (your project folder\obj\Release or your projec
folder\obj\Debug) Visual Studio creates when you use Build Cab Files ther
will be a shortcut created in the Start Menu\Programs folder for you
application. If you open the .inf file you will see this near the botto
(except with your application name of course


[Shortcuts
AccessViewer,0,AccessViewer.exe,%CE11

if you change the destination to %CE17% this will place the shortcut i
\Windows\Start Menu (or localised equivalent). You can read about thes
%CE*% identifiers in the Visual Studio help under "Windows CE Director
Identifiers". Once you've changed this inf file you'll need to rebuild th
CAB files by running the BuildCab.bat file in the same folder

Pete

--
Peter Foo
Windows Embedded MV
OpenNETCF.org Senior Adviso
www.inthehand.com | www.opennetcf.or

"Tom Couvret" <NOTtomcouvret@spamcop.net> wrote in messag
news:%23WOvS2H8DHA.1632@TK2MSFTNGP12.phx.gbl..
> Hello to all
>> I think this must be really simple, and I must be asking the wron

> questions in the search engines, but 2 things..
>> 1) Can someone please help me with how to set the application icon on

> .NET CF app
>> What I would like is to set the icon that is shown for the app when yo

> look under Program Files
>> 2) I also cant find how to tell it to include a reference to my app i

> the startment. I assume its simple - something to do with the .inf o
> the .ini file, but again I cant see any simple examples that tell me ho
> to do it. Of course the icon should again be the same as above
>> Normal appologies if its been asked before, etc
>> To

>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off