这是一些代码:
ReadOnly Property X() As Integer
Get
Return PointerX
End Get
End Property
ReadOnly Property Y() As Integer
Get
Return PointerY
End Get
End Property
Private Sub Proj_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
PointerX = e.X
PointerY = e.Y
End Sub
我想让属性窗口在每次鼠标移动时更新 X 和 Y 的属性,以便用户立即看到它们。我知道这很愚蠢,但这是我的任务。
有人可以帮助我吗?