PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Application Icon and Start Menu
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Application Icon and Start Menu
![]() |
Application Icon and Start Menu |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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! |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#5 |
|
Guest
Posts: n/a
|
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 > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

