C# 怎么实现  取屏幕宽度  取鼠标水平位置  取鼠标垂直位置 取屏幕高度!
  
 请大家指教!

解决方案 »

  1.   

    使用Screen对象来获取屏幕信息.
    使用Control.MousePosition来获取鼠标位置信息.
      

  2.   

    Screen.Width
    Screen.Hegiht

    不知道是否正确
      

  3.   

    Screen.Width 
    Screen.Hegiht   这个不行哦!
        还是谢谢你的热心
      

  4.   

    如下是主显示器的.如是就一个显示器就是当前的显示器:
    Screen.PrimaryScreen.Bounds.Size.Height;
    Screen.PrimaryScreen.Bounds.Size.Width;
      

  5.   

     int ScreenWidth = Screen.PrimaryScreen.WorkingArea.Width;  //屏幕高度    可以了!  结贴