Regarding the following code:
Private Sub Form3_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
Coordinates.Text = "x = " & e.X - 300 & " , y = " & (-1) * (e.Y - 200)
End Sub
i quite dont get it e.X ?? what does it mean then -300 ?
When i run the program i see the limits of the x - Axis from -300 to + 300
regarding y; Why is the coding quite different than x ?
(-1) * (e.Y - 200)
Why does it say (-1).
Program works fine. I just need an explanation.
Private Sub Form3_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
Coordinates.Text = "x = " & e.X - 300 & " , y = " & (-1) * (e.Y - 200)
End Sub
i quite dont get it e.X ?? what does it mean then -300 ?
When i run the program i see the limits of the x - Axis from -300 to + 300
regarding y; Why is the coding quite different than x ?
(-1) * (e.Y - 200)
Why does it say (-1).
Program works fine. I just need an explanation.