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