VB.NET event listener for click outside a form

家住魔仙堡 提交于 2019-12-24 09:40:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!