How to Register a click or tap anywhere on a user control or Panel

Answered
0
0

I have a user control with several labels and other controls that only display information – it is like a “Info Tile” . I want the user to be able to click that “Tile” so that I can go to another form with other controls that they can interact with -like edit some settings, etc. How can I do that without coding a click event for everything on the user control ? I read online about using a transparent panel over the top of all the controls – and code 1 click event there. However, I can’t see a way to make the panel transparent so that it can sit over the top of the entire user control.

Any way to do this without a bunch of code to register all those click events ?

  • You must to post comments
Best Answer
0
0

Use the Anonymous = true property on the controls that you want to make transparent to the pointer.

https://wisej.com/support/question/how-to-register-a-click-or-tap-anywhere-on-a-user-control-or-panel

  • edmond girardi
    Let me give it at try. Will follow up shortly.
  • You must to post comments
0
0

Works ! Thanks.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.