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); }
时间: 2025-01-06 08:52:01
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); }