0

Possible Duplicate:
How can I add transparency to a c# form while keeping controls visible?

I am working with C# form with panel1.

I have set Opacity=30% for Form1, But I reflect on panel1.

Any help me to by code to set Opacity 30% only on the form, not in panel1?

Community
  • 1
  • 1
user1078632
  • 43
  • 1
  • 6

1 Answers1

1

You cannot do that. The form's opacity is applied to the whole form, and it's children. Sorry - not possible with out-of-the-box C# functionality.

Kieren Johnstone
  • 41,277
  • 16
  • 94
  • 144
  • It's also worth adding that some controls' opacity including `Panel` can be changed using the `BackColor` property editing the `Alpha` which takes an integer through 0 to 255 (e.g `panel1.BackColor = Color.FromArgb(100, Color.White);`). Have a nice day :) – Picrofo Software Dec 01 '12 at 16:04