Hi Im working on a project containing a couple of forms. On the main form I want to labels in the status bar that show the X,Y location of the cursor when it moves over the form. I thought this code would do it but it doesnt work does anyone know why or have any advice?
Code:
Private Sub MainForm_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
        lblCursorX.Text = "X: " & e.X
        lblCursorY.Text = "Y: " & e.Y

    End Sub