如何通过单击获得像素坐标

|| 我是C#和.net的新手。我想通过单击它来获取像素的坐标,这样它应该显示在工具提示中!我有一个获取顶点的代码,但是我不知道如何与鼠标单击关联。
public class Vertex
    {
        public Vertex(int i, int j)
        {
            this.X = i;
            this.Y = j;
        }
         public int X { get; set; }
         public int Y { get; set; }
         public string ToString()
        {
            return string.Format(\"({0}/{1})\", this.X, this.Y);
        }
    }  
    
已邀请:
        在
WindowsForms
中处理鼠标按下事件。 MouseEventArgs的msdn页面提供了在工具提示中显示坐标的示例。 编辑: 只是要记住的注意事项。
MouseEventArgs
中的坐标会根据您正在处理的事件而有所不同(请参见前面引用的鼠标事件args msdn页面)。在某些情况下,ѭ3与控件有关,在其他情况下与窗体有关,而其他则与屏幕有关。     

要回复问题请先登录注册