WinForms app with Vista icon

  • Thread starter Martin Hart Turner
  • Start date
M

Martin Hart Turner

Hi:

I am looking for information as to how I can create a simple WinForms
application under VS2008 (+SP1) that displays the larger, improved Vista
icons when I create a shortcut on the desktop. The program should also
display the standard icon when run on Windows XP.

Any help appreciated.

Regards,
Martin.
 
M

Morten Wennevik [C# MVP]

Hi Martin,

Without having double checked this I suspect you just have to add the
necessary image types to your icon. I'm not quite sure what size Vista uses,
but you can put a combination of 256x256, 128x128, 96x96, 64x64, 48x48,
32x32, 16x16 images in 1 bit 4 bit or 24 bit into the icon and the proper one
will get selected by the operating system. Having googled a bit I think
Vista uses the 256x256x24 image and scales it down when needed, the three
smallest image types are used by XP.
 
M

Martin Hart Turner

Morten:

Thanks very much for the information.

I found some information and a free download for this at
http://www.axialis.com/index.html

Regards,
Martin.

"Morten Wennevik [C# MVP]" <[email protected]> escribió en el
mensaje de noticias
Hi Martin,

Without having double checked this I suspect you just have to add the
necessary image types to your icon. I'm not quite sure what size Vista
uses,
but you can put a combination of 256x256, 128x128, 96x96, 64x64, 48x48,
32x32, 16x16 images in 1 bit 4 bit or 24 bit into the icon and the proper
one
will get selected by the operating system. Having googled a bit I think
Vista uses the 256x256x24 image and scales it down when needed, the three
smallest image types are used by XP.

--
Happy Coding!
Morten Wennevik [C# MVP]


Martin Hart Turner said:
Hi:

I am looking for information as to how I can create a simple WinForms
application under VS2008 (+SP1) that displays the larger, improved Vista
icons when I create a shortcut on the desktop. The program should also
display the standard icon when run on Windows XP.

Any help appreciated.

Regards,
Martin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top