[.net]表格中有鼠标移动事件吗?

时间:2017-08-10 04:25:13

标签: c# .net mouse

.net表单中是否有任何事件可以找到鼠标的移动?如果没有,请建议我好的输入库。如果你能帮助我,那将是非常好的:P

1 个答案:

答案 0 :(得分:1)

// 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