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. "Fade Panel" control or method

"Fade Panel" control or method

Scheduled Pinned Locked Moved C#
4 Posts 4 Posters 1 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.
  • J Offline
    J Offline
    Jon Hulatt
    wrote on last edited by
    #1

    Hi, I want to overlay controls on my main window that fade away and dissapear when the mouse is outside the window. Very much like in Windows Media Player. Is there a control to do that for me, or can anyone give me some starting information on how that might be achieved. thanks jon

    using System.Beer;

    N R realJSOPR 3 Replies Last reply
    0
    • J Jon Hulatt

      Hi, I want to overlay controls on my main window that fade away and dissapear when the mouse is outside the window. Very much like in Windows Media Player. Is there a control to do that for me, or can anyone give me some starting information on how that might be achieved. thanks jon

      using System.Beer;

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      I guess it depends on what version of Media Player you are using but I thought the current version uses WPF which has more graphics capabilities then standard WinForms. Using WinForms though you could try handling the mouse move event or the Deactivated event


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • J Jon Hulatt

        Hi, I want to overlay controls on my main window that fade away and dissapear when the mouse is outside the window. Very much like in Windows Media Player. Is there a control to do that for me, or can anyone give me some starting information on how that might be achieved. thanks jon

        using System.Beer;

        R Offline
        R Offline
        Rutvik Dave
        wrote on last edited by
        #3

        I don't know about any control buy but, You can put your controls inside a panel, and then handle your main form's active / deactivate , enter / leave events and set the opacity of the panel from 0 to 100 and 100 to 0, using a timer control to fade out and fade in... (I think Mark has suggested you the same thing...)

        modified on Monday, April 26, 2010 1:27 PM

        1 Reply Last reply
        0
        • J Jon Hulatt

          Hi, I want to overlay controls on my main window that fade away and dissapear when the mouse is outside the window. Very much like in Windows Media Player. Is there a control to do that for me, or can anyone give me some starting information on how that might be achieved. thanks jon

          using System.Beer;

          realJSOPR Offline
          realJSOPR Offline
          realJSOP
          wrote on last edited by
          #4

          Look at this for guidance: .NET Animation Control[^]

          .45 ACP - because shooting twice is just silly
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

          modified on Monday, April 26, 2010 5:45 PM

          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