110,571
社区成员
发帖
与我相关
我的任务
分享
private void inTiemchange()
{
textBox1.Text = "X=" + MousePosition.X;
textBox2.Text = "Y=" + MousePosition.Y;
}
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
EndPt.X = e.X;
EndPt.Y = e.Y;
this.textBox1.Text =Convert.ToString( EndPt.X);
this.textBox2.Text =Convert.ToString( EndPt.Y);
this.textBox1.Refresh();
this.textBox2.Refresh();
}