마우스 위치 가져오기

Public Class Form1

 

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

        Timer1.Interval = 10

        Timer1.Start()

    End Sub

 

    Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick

        Label1.Text = "X: " & MousePosition.X

        Label2.Text = "Y: " & MousePosition.Y

    End Sub

End Class

이 게시물을

공유하기

SEARCH

MENU NAVIGATION