468,544 Members | 1,711 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,544 developers. It's quick & easy.

Custom Icon not displaying in Task Switcher

I am using VB.Net with Visual Studio 2005 to create an application. I set the application's icon by:

1. Clicking on the project.
2. Selecting View >> Property Pages.
3. Selecting the Application page.
4. Selecting <browse> from the "Icon" drop-down menu.
5. Selecting the .ico file I created using an third-party tool.

Things almost work correctly. When I start the program, I see the icon in the upper left hand corning of the application's window. I also see the the icon in the window's program bar at the bottom of the screen. However, when I press Alt-Tab, a blank space is located where the program's icon would normally be located.

Any guess what is wrong? I've tried using both 16x16 and 32x32 .ico files.

Thanks
Matt
Nov 16 '07 #1
5 24981
After playing around some more, I've noticed that when I change the icon selection as described above nothing actually happens. No matter what I set the icon to, the original 16x16 icon I selected remains the icon. Even if I select (default). Any body have a guess what is going on here?

Since I am not actually changing the icon, I have not been trying the 32x32 icon as I thought. (they look the same, so tough to tell.)

Even if I start a new project, I am unable to change the icon from the default icon. However, somehow I got the icon of the original project to switch to my custom 16x16 one.

thanks
Nov 17 '07 #2
After playing around some more, I've noticed that when I change the icon selection as described above nothing actually happens. No matter what I set the icon to, the original 16x16 icon I selected remains the icon. Even if I select (default). Any body have a guess what is going on here?

Since I am not actually changing the icon, I have not been trying the 32x32 icon as I thought. (they look the same, so tough to tell.)

Even if I start a new project, I am unable to change the icon from the default icon. However, somehow I got the icon of the original project to switch to my custom 16x16 one.

thanks
After a little more poking around, I've discovered that I am setting the executable's icon but not the icon displayed in the window. Any body know how to do that? I must have known at one point...
Nov 17 '07 #3
Figured it out, to set the what I want, I must set the Form's icon property.
Nov 19 '07 #4
Plater
7,872 Expert 4TB
Mighta saved you some headache:
http://www.thescripts.com/forum/thread648181.html
Nov 19 '07 #5
ALX1
2
Matttsh, I don't know if you're still out there 5 years later...
I just wanted to thank you for continuing to post your issue and your results experimenting with various fixes, even though you weren't generating a response here. I have been searching for many days for the answer to this same problem. Many forums... hundreds of posts... MSDN and the works... many, many hours... and you are the only one who solved this issue for me. For those who quit posting after not receiving an answer to their questions, take a lesson from mattsch. Here it is, nearly 5 years later and he has really helped me out.
Thank You!
Jul 22 '12 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Russ via AccessMonster.com | last post: by
reply views Thread by csharpnewbie via DotNetMonster.com | last post: by
reply views Thread by Marcel Brekelmans | last post: by
2 posts views Thread by Gary Brown | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.