Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. toolbar icon

toolbar icon

Scheduled Pinned Locked Moved C#
windows-adminquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    elena12345
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • E elena12345

      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

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      "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 the ImageList 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

      E 1 Reply Last reply
      0
      • H Heath Stewart

        "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 the ImageList 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

        E Offline
        E Offline
        elena12345
        wrote on last edited by
        #3

        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

        H 1 Reply Last reply
        0
        • E elena12345

          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

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups