toolbar icon
-
Do Windows store icons somewhere in the registry? Do you know the path? I had to change the toolbar icon for our application, and it works. But when you start the app, for a split second the old icon flashes on the bottom. I can't figure out where it's coming from!! I changed App.ico and the icon on the main form. Any ideas? Thanks, Elena
-
Do Windows store icons somewhere in the registry? Do you know the path? I had to change the toolbar icon for our application, and it works. But when you start the app, for a split second the old icon flashes on the bottom. I can't figure out where it's coming from!! I changed App.ico and the icon on the main form. Any ideas? Thanks, Elena
"Windows" doesn't store icons anywhere. Applications store icons however they want to. If you just changed the App.ico and the main form's icon, this won't change the icon for your toolbar. Be default, Visual Studio .NET puts the
ImageList
for a toolbar into a ResX file (localized resources). That image is still in the ResX file and apparently you're programmatically changing the toolbar at runtime. Edit theImageList
for your toolbar and remove that image, or replace it with App.ico. In this event, the icon data will be serialized to the ResX file, which gets compiled as a binary .resources file associated (i.e., name similarily) as the class it's "bound" to (in the designer, that is). If you want to see this, click "View Hidden Files" in the solution explorer when your project is selected. It will appear under your form or control if you drill-down (i.e., click the +) sign. Note that .NET applications do not utilize the registry (they can, but this is not recommended). Also, Windows Explorer (the Windows shell) does cache file association icons in a system image list, but this has absolutely nothing to do with your problem in particular. This is just FYI.Microsoft MVP, Visual C# My Articles
-
"Windows" doesn't store icons anywhere. Applications store icons however they want to. If you just changed the App.ico and the main form's icon, this won't change the icon for your toolbar. Be default, Visual Studio .NET puts the
ImageList
for a toolbar into a ResX file (localized resources). That image is still in the ResX file and apparently you're programmatically changing the toolbar at runtime. Edit theImageList
for your toolbar and remove that image, or replace it with App.ico. In this event, the icon data will be serialized to the ResX file, which gets compiled as a binary .resources file associated (i.e., name similarily) as the class it's "bound" to (in the designer, that is). If you want to see this, click "View Hidden Files" in the solution explorer when your project is selected. It will appear under your form or control if you drill-down (i.e., click the +) sign. Note that .NET applications do not utilize the registry (they can, but this is not recommended). Also, Windows Explorer (the Windows shell) does cache file association icons in a system image list, but this has absolutely nothing to do with your problem in particular. This is just FYI.Microsoft MVP, Visual C# My Articles
I'm not sure if we are talking about the same thing. (Or I simply don't understand) When I talk about toolbar I am talking about the standrard Windows toolbar at the bottom of the screen that shows you the apps you are running. It always has a little icon. How can I change ImageList for this toolbar? Elena
-
I'm not sure if we are talking about the same thing. (Or I simply don't understand) When I talk about toolbar I am talking about the standrard Windows toolbar at the bottom of the screen that shows you the apps you are running. It always has a little icon. How can I change ImageList for this toolbar? Elena
That's the task bar - not just any old toolbar. You should be more specific next time. These images may be cached in the system image list, but I've never seen a problem such as yours. You can use something like TweakUI from the PowerToys installation for your respective Windows OS to clear this cache.
Microsoft MVP, Visual C# My Articles