How do I make a form transparent while keeping the controls fully visible?

Posted by Power-Mosfet on Stack Overflow See other posts from Stack Overflow or by Power-Mosfet
Published on 2010-05-07T23:53:47Z Indexed on 2010/05/08 0:38 UTC
Read the original article Hit count: 248

Filed under:
|
|

I would like to have a form in which the controls on the form are fully visible but the form itself is invisible. If I change the form's Opacity, this makes both the form and the controls on it semi-transparent, so this doesn't work.

I can't do this by setting the form's TransparencyKey, since I have a PictureBox on the form. If the image in the PictureBox happens to contain pixels that match the TransparencyKey, they appear as openings in the form, which I don't want.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET