[.net]是否有任何形式的鼠标移动事件?
答
// 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。
你可以google一下:( –
我知道,但我无法找到。这就是为什么我在这里发帖 –
看到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 –