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. c# and icons...

c# and icons...

Scheduled Pinned Locked Moved C#
csharphelp
9 Posts 4 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.
  • L Offline
    L Offline
    losted
    wrote on last edited by
    #1

    I would like to know if it is possible to have different icons for the same window in the title bar and in the taskbar.. I think that everything is possible but.. Anyway.. if someone have something to help me it would be appreciate.. Thanks Luc

    M K 2 Replies Last reply
    0
    • L losted

      I would like to know if it is possible to have different icons for the same window in the title bar and in the taskbar.. I think that everything is possible but.. Anyway.. if someone have something to help me it would be appreciate.. Thanks Luc

      M Offline
      M Offline
      mike montagne
      wrote on last edited by
      #2

      I could be wrong, but I don't think there's a practical way to do that. The Task Bar reads the icon from the executable -- you don't have an obvious opportunity to pass an alternate icon to system processes managing the Task Bar.

      L 1 Reply Last reply
      0
      • M mike montagne

        I could be wrong, but I don't think there's a practical way to do that. The Task Bar reads the icon from the executable -- you don't have an obvious opportunity to pass an alternate icon to system processes managing the Task Bar.

        L Offline
        L Offline
        losted
        wrote on last edited by
        #3

        That's also my conclusion, but there's absolutely no way to do that? No hack or tricky tricks?

        M 1 Reply Last reply
        0
        • L losted

          That's also my conclusion, but there's absolutely no way to do that? No hack or tricky tricks?

          M Offline
          M Offline
          mike montagne
          wrote on last edited by
          #4

          I know I've seen an example of how to draw a rectangle on the desktop in response to mouse drag events, but I can't recall where. It's been a while. You should be able to dig up an example.

          1 Reply Last reply
          0
          • L losted

            I would like to know if it is possible to have different icons for the same window in the title bar and in the taskbar.. I think that everything is possible but.. Anyway.. if someone have something to help me it would be appreciate.. Thanks Luc

            K Offline
            K Offline
            kubben
            wrote on last edited by
            #5

            The NotifyIcon has its own icon property. so you can set that. http://www.codeproject.com/dotnet/notifyiconcontrol20.asp[^] Then you set the project and form icon to be something different. http://www.codeproject.com/useritems/HowToIcon.asp[^] Hope that helps. Ben

            L 1 Reply Last reply
            0
            • K kubben

              The NotifyIcon has its own icon property. so you can set that. http://www.codeproject.com/dotnet/notifyiconcontrol20.asp[^] Then you set the project and form icon to be something different. http://www.codeproject.com/useritems/HowToIcon.asp[^] Hope that helps. Ben

              L Offline
              L Offline
              losted
              wrote on last edited by
              #6

              kubben, there's nothing about the tray in what i want to do. I just want to have different icon in my titlebar and taskbar.

              U K 2 Replies Last reply
              0
              • L losted

                kubben, there's nothing about the tray in what i want to do. I just want to have different icon in my titlebar and taskbar.

                U Offline
                U Offline
                Uwe Keim
                wrote on last edited by
                #7

                what would this be good for?

                -- • Zeta Producer Desktop CMS Intuitive, completely easy-to-use CMS for Windows. • Zeta Helpdesk Open Source ticket software for Windows and web. • Zeta Uploader Easily send large files by e-mail. Windows and web client. • Desargues Innovative, lean and neat calculator for Windows.

                L 1 Reply Last reply
                0
                • U Uwe Keim

                  what would this be good for?

                  -- • Zeta Producer Desktop CMS Intuitive, completely easy-to-use CMS for Windows. • Zeta Helpdesk Open Source ticket software for Windows and web. • Zeta Uploader Easily send large files by e-mail. Windows and web client. • Desargues Innovative, lean and neat calculator for Windows.

                  L Offline
                  L Offline
                  losted
                  wrote on last edited by
                  #8

                  I want to do that because my application is for win2000 only and my icon is white with transparent background. On the blue title bar the look is good (white over blue) but in the task bar its white over gray so we almost do not see it.

                  1 Reply Last reply
                  0
                  • L losted

                    kubben, there's nothing about the tray in what i want to do. I just want to have different icon in my titlebar and taskbar.

                    K Offline
                    K Offline
                    kubben
                    wrote on last edited by
                    #9

                    I am pretty sure whatever your form Icon is set to, that is the same icon on the taskbar. For some reason I thought you wanted a different icon in the tray. Sorry, Ben

                    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