获取当前鼠标的坐标

Point p = Cursor.Position;  
int x = p.X;  
int y = p.Y;  
label1.Text = String.Format("Mouse X:{0}, Mouse Y :{1}", x, y);  
posted @ 2011-03-24 15:52  Laro  阅读(231)  评论(0编辑  收藏  举报