Change program icon windows 7 taskbar
This is super cool. Thanks for posting, Kent! So I restarted the explorer anyway and it worked perfectly. Next of Windows. Details required :. Cancel Submit. Lead3 Volunteer Moderator. Have you tried removing the program from the task bar and repinning it after you changed the icon? How satisfied are you with this reply? Windows 10 Annual Updates. OneDrive Windows 7 and 8. Copy and Paste Between Android and Windows.
Protect Windows 10 From Internet Explorer. Mozilla Fights Double Standard. Connect to a Hidden Wi-Fi Network. Change the Size of the Touch Keyboard. Reader Favorites Take Screenshot on Windows. Mount an ISO image in Windows. Boot Into Safe Mode. Where to Download Windows Legally.
Find Your Lost Product Keys. Clean Install Windows 10 the Easy Way. The Best Tech Newsletter Anywhere Join , subscribers and get a daily digest of news, geek trivia, and our feature articles. How-To Geek is where you turn when you want experts to explain technology. Since we launched in , our articles have been read more than 1 billion times.
Want to know more? Connect and share knowledge within a single location that is structured and easy to search. I wan't to customize the icon displayed within the windows 7 taskbar. When my app is running, I can do it by changing main window icon but, when the app is pinned, the exe's icon is displayed.
How can I set the taskbar icon for my app to an icon different from the one embedded within the exe? Not tried, this solution may work but looks dirty. Our app is compiled once but depending on config file, features are enabled or not so it's a product or another. We do not want to compile one exe for each product. The solution above may not work as many instances of my app can be installed in different pathes so you end up with the same exe file name but different icons!
What you're looking for is the IMClient sample:. When you pin an application to the TaskBar, it simply creates a shortcut in the following directory:. You should be able to identify where the shortcut is ie, get KnownFolders and work from there. The machine might need a reboot for this to take effect, but it should work. If you hold down Shift while right-clicking on the pinned application, and select Properties, you can see the Change Icon button for the shortcut.
This is basically what you need to emulate with code. All of these things can definately be done with code, but whether you think they're any better than the registry setting is up to you. You can do this by using the library called "Windows 7 Bridge" which is based on the "Windows Vista Bridge". More info can be found here. If you create an application and put the icon property of the main window, that icon will appear in the taskbar also. But, if you pin-it to the taskbar, that icon dissapear.
Am I right? If so, go to the project properties and in the application tab, put the icon that you want for the exe. Now, you will see that icon in the taskbar when pinned. As far as I can tell, for some reason you can't change the icon for a program that's already pinned to the taskbar.
To do it, just unpin the program, locate it in the start menu, right click - properties - change icon.
0コメント