美文网首页
Point and Position in WinForm Ap

Point and Position in WinForm Ap

作者: wxy325 | 来源:发表于2016-08-05 10:11 被阅读21次
    • Control Position
      • Absolute Position from Screen
    button1.PointToScreen(new Point(0, 0))
    
    • Mouse Position
      • Absolute Position from Screen
    Control.MousePosition
    
    System.Windows.Forms.Cursor.Position.X
    System.Windows.Forms.Cursor.Position.Y
    
    • Position Related to Left-top of Form
    this.PointToClient(Control.MousePosition)
    

    相关文章

      网友评论

          本文标题:Point and Position in WinForm Ap

          本文链接:https://www.haomeiwen.com/subject/nnehsttx.html