C# Winforms Transparent Control allowing Clickthrough

后端 未结 1 2008
离开以前
离开以前 2021-01-14 12:02

I have a Winforms control that starts off completely transparent, but then lines are drawn on it for stuff. I want mouse events to completely ignore the control and instead

1条回答
  •  孤独总比滥情好
    2021-01-14 12:55

    I've been looking for a solution to this too. The closest i've come is getting the completely transparent areas to have click-through, by setting the control's Region property to the transparent area. (courtesy of this post: http://bytes.com/topic/visual-basic-net/answers/815914-transparent-user-control-click-through-control-below#post3251154)

    0 讨论(0)
提交回复
热议问题