I'm working in C#, in Visual Studio, and I'm trying to make a transparent form - entirely transparent, though not click-through - without making the title bar transparent, so that there's still something to move the (invisible) window around and (most importantly) close it.
It'd also be nice if the window had visible borders, but that may be a separate question.
If I understand your question correctly, you can Use TrancparencyKey
Set TrancparencyKey
and BackColor
properties both to same color like Color.Red
.
Here is the screenshot of transparent form over visual studio:
Note:
Color.Red
every thing works fine and you can handle mouse Click
. But the behavior is different for different colors, for example Color.Magenta
the form can not capture the mouse Click
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With