private void Form1_MouseDown(object sender, MouseEventArgs e) { string x = e.X.ToString(); //x坐标 string y = e.Y.ToString(); //Y坐标 MessageBox.Show("X:"+x+" Y:"+y); }
时间: 2024-11-04 19:12:54
private void Form1_MouseDown(object sender, MouseEventArgs e) { string x = e.X.ToString(); //x坐标 string y = e.Y.ToString(); //Y坐标 MessageBox.Show("X:"+x+" Y:"+y); }