如果你在一些鼠标处理事件中获取,比较方便,该事件的EventArgs参数里就有位置X,Y.否则你可以使用API:
//声明
[DllImport("User32.dll")]
public static extern bool GetCursorPos(ref Point p);
[DllImport("User32.dll")]
public static extern bool ScreenToClient(System.IntPtr hwnd,ref Point p);
--------
Point p= new Point(0,0);
bool b=GetCursorPos(ref p);
b=ScreenToClient(this.Handle ,ref p);
--------