Reputation: 138
I want to trigger a function when i click anywhere inside another specific window.
example:
When i clicked something in windows calculator i want to trigger a function in my application.
Upvotes: 0
Views: 389
Reputation: 132
when you are clicking on windows that means you are setting focus to windows. If you want to call a function when form is clicked then you have to use form activate event. For your scenario i am assuming that calculator is sitting inside panel. if that is the case you need to call your function in click event of panel.
Upvotes: 1