0

I have been facing an issue recently.
I need to create a transparent panel that shows what is Behind the form, not the Form.
For example, if I am running my application on my desktop; something like this, I will see my desktop from where where the panel is.
Thank you in advance :)

Richard Ev
  • 52,939
  • 59
  • 191
  • 278
  • You mean, like a glass? – Thadeu Fernandes May 29 '16 at 19:47
  • If you can show us what you've tried, maybe we can help... – Richard Ev May 29 '16 at 19:49
  • @ThadeuFernandes Correct :) , and RichardEverett the only progress I have gotten to is setting the backcolor to Color.Transparent and that is not what my goal is :\ – MinecraftSquad FactionsPVP May 29 '16 at 19:53
  • I think that this can be a way to do it: http://stackoverflow.com/questions/4314215/c-sharp-transparent-form – Thadeu Fernandes May 29 '16 at 19:54
  • @ThadeuFernandes after some tweaking, I got that to work :) I suggest you answer so I can accept it – MinecraftSquad FactionsPVP May 29 '16 at 19:57
  • You can create a Form and set both `BackColor` and `TransparencyKey` properties to `Color.Magenta`. This way you will have a transparent form which also mouse click pass through the form. If you want to be able to handle click on transparent area, use `Color.Red`. [Transparent Windows Form without transparent Title Bar](http://stackoverflow.com/questions/32783183/transparent-windows-form-without-transparent-title-bar/32783251#32783251) – Reza Aghaei May 29 '16 at 20:05

1 Answers1

0

You can set a background color then use the TransparencyKey in properties to make this color transparent.

Reference: C# - Transparent Form

Community
  • 1
  • 1
Thadeu Fernandes
  • 505
  • 1
  • 6
  • 23