private void pictureBox1_MouseClick(object sender, MouseEventArgs e) { Point p = new Point(e.X,e.Y); MessageBox.Show(e.X.ToString()+"\t"+e.Y.ToString()); }
在点击事件里有个参数e,可以用e.X和e.Y获得坐标