Transparent Windows Form that can handle Click

后端 未结 1 1223
暗喜
暗喜 2020-12-04 02:24

I\'m working in C#, in Visual Studio, and I\'m trying to make a transparent form - entirely transparent, though not click-through - without

相关标签:
1条回答
  • 2020-12-04 03:01

    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:

    • When you use for example 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.
    0 讨论(0)
提交回复
热议问题