C#中获取鼠标点击时的位置
代码: private void From1_MouseClick(object sender, MouseEventArgs e)
{
Point p = e.Location;
string X = p.X.ToString();
string Y = p.Y.ToString();
MessageBox.Show(p.ToString(),X+Y);
}