[.net]是否有任何形式的鼠标移动事件?

问题描述:

在.net窗体中是否有任何事件来查找鼠标的移动?如果没有,请建议我输入好的库。如果你能帮助我,这将是非常好的:P[.net]是否有任何形式的鼠标移动事件?

+1

你可以google一下:( –

+0

我知道,但我无法找到。这就是为什么我在这里发帖 –

+1

看到https://stackoverflow.com/questions/2063974/how-do-i -capture-the-mouse-move-event和https://msdn.microsoft.com/en-us/library/system.windows.forms.mouseeventargs.aspx和https://docs.microsoft.com/en-us/dotnet/framework/winforms/mouse-events-in-windows-forms –

// The following example displays the location of the form in screen coordinates 
// on the caption bar of the form. 
private void Form1_Move(object sender, System.EventArgs e) 
{ 
    this.Text = "Form screen position = " + this.Location.ToString(); 
} 

对于这一点,请阅读Control.Move Event on msdn或stackoverflow。

MouseMove Event in Form on stackoverflow