MouseHover/MouseLeave event on the whole entire window
问题 I have Form subclass with handlers for MouseHover and MouseLeave . When the pointer is on the background of the window, the events work fine, but when the pointer moves onto a control inside the window, it causes a MouseLeave event. Is there anyway to have an event covering the whole window. (.NET 2.0, Visual Studio 2005, Windows XP.) 回答1: When the mouse leave event is fired one option is to check for the current position of the pointer and see if it within the form area. I am not sure