Studio.net Messes up icons

snarfblam

Mega-Ultra Chicken
Joined
Jun 10, 2003
Messages
1,832
Location
USA
User Rank
*Expert*
Ive made a program with Visual Basic.net. After I compile it, I open the executable to include a manifest file as a recource so that my controls are all Windows Xp style.

The programs icon, however, has a windows Xp Icon format (32 bit A8R8G8B8). When I open the executable, add the manifest, and save the executable, the programs icon no longer appears in the 32-bit format, but instead, in the 8-bit format. (The icon has 4-bit, 8-bit, and 32-bit formats at 16x16, 24x24, 32x32, and 48x48 resolutions.) Ive noticed that the Studio.net icon editor doesnt support icons with alpha channels, and Im wondering if that might be related.

After adding the manifest, Ive opened up the program in a separate icon editor. The 32-bit format is still present in the icon, it just isnt displaying it in explorer.


Also, when I run the program, in the title bar of the window, the icon DOES appear in the 32-bit format. Just not in explorer.
 
I can try this tomorrow but I wonder... have you tried using a stand-alone manifest file to see if it behaves the same as if you embed the file? If you need a copy of a simple manifest file let me know - I can send you one tomorrow.

-nerseus
 
Ive been using an external manifest file and it has been working exactly as one would expect.

The problem comes about when I open an exe file with studio, and edit and save it. Even if I dont add the manifest, the icon still shows in 8-bit in explorer. I really doubt that this problem is related to the manifest. I just think studio.net has issues with 32-bit icons, but i really dont know; it could be something else
 
I carefully checked the contents of the manifest file that is included in the msdn help file, it says nothing about the icon. The issue, I think, is the recource editor.
 
Back
Top