问题
In VB.NET I can add an event listener for clicking inside a form, but I want the program to pick up clicks outside the form, when I am clicking elsewhere. Is this possible?
回答1:
You are talking about a global mouse hook, the codeplex project GlobalMouseKeyboardHook is one of the easier ways to accomplish it.
来源:https://stackoverflow.com/questions/19210404/vb-net-event-listener-for-click-outside-a-form