User control click event not working when clicking on text inside control?

前端 未结 3 711
逝去的感伤
逝去的感伤 2020-12-19 07:23

I have a user control called GameButton that has a label inside it. When I add the user control to my form, and add a click event to it, its triggered when you

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-19 08:04

    Set the "enable" property of your labels "False, then mouse events will work in user control.

提交回复
热议问题