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. Panel Opacity

Panel Opacity

Scheduled Pinned Locked Moved C#
question
3 Posts 3 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.
  • A Offline
    A Offline
    AB7771
    wrote on last edited by
    #1

    How can set the opacity of the Panel?

    Thanks & Regards, Pramod "Everyone is a genius at least once a year"

    A M 2 Replies Last reply
    0
    • A AB7771

      How can set the opacity of the Panel?

      Thanks & Regards, Pramod "Everyone is a genius at least once a year"

      A Offline
      A Offline
      Ajay k_Singh
      wrote on last edited by
      #2

      There is no such direct property for Panel control to handle its opacity. Although you may set its back color to Transparent, it will allow you to make Panel control transparent. Such as – Me.Panel1.BackColor = Color.Transparent I hope this helps:). -Dave.

      Dave Traister, ComponentOne LLC. www.componentone.com

      1 Reply Last reply
      0
      • A AB7771

        How can set the opacity of the Panel?

        Thanks & Regards, Pramod "Everyone is a genius at least once a year"

        M Offline
        M Offline
        Martin 0
        wrote on last edited by
        #3

        Hello, Example for Transparency: If you have inherited a panel from System.Windows.Forms.Panel, you could try out adding this code. protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ExStyle |= 0x20; return cp; } } protected override void OnPaintBackground(PaintEventArgs e) {} Maybe it fits your needs! It doesn't support DoubleBuffer.

        All the best, Martin

        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