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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Changing Opacity of Child Form (Is it possible?)

Changing Opacity of Child Form (Is it possible?)

Scheduled Pinned Locked Moved .NET (Core and Framework)
question
5 Posts 3 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.
  • D Offline
    D Offline
    DotNetWWW
    wrote on last edited by
    #1

    Hi all , I have a Form object which is added to a Panel , Is there any way to change the opacity of this form after becoming the child of panel? I searched through net , but couldn't find any solution . Thanks in advance .

    D 1 Reply Last reply
    0
    • D DotNetWWW

      Hi all , I have a Form object which is added to a Panel , Is there any way to change the opacity of this form after becoming the child of panel? I searched through net , but couldn't find any solution . Thanks in advance .

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      No, it's not possible. The entire top-level form is the only one that can use Opacity (and still see a result). If you set the Opacity of a form, treated like a control on a parent form, nothing will happen. The form will still be completely opaque.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      D 1 Reply Last reply
      0
      • D Dave Kreskowiak

        No, it's not possible. The entire top-level form is the only one that can use Opacity (and still see a result). If you set the Opacity of a form, treated like a control on a parent form, nothing will happen. The form will still be completely opaque.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        D Offline
        D Offline
        DotNetWWW
        wrote on last edited by
        #3

        Thanks , but Is there any alternative solution?

        P D 2 Replies Last reply
        0
        • D DotNetWWW

          Thanks , but Is there any alternative solution?

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          The only way to do this would be to take over the drawing of the client altogether. This is not a solution for the faint hearted.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles

          1 Reply Last reply
          0
          • D DotNetWWW

            Thanks , but Is there any alternative solution?

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            Or rewriting your project using WPF. Warning: Rather steep learning curve...

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            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