Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Reverse X & Y axis

$
0
0
Hey, I'm making a program to show the coordinates wherever the mousecursor is. That part is done.
But right now the coordinates is showing from top to bottom. It starts at 0 at the left top corner, and gets higher when I move the cursor away from it. Is there anyway to reverse this so it starts from the left corner and the number goes down when I move the cursor from it?

This is my current code i'm using.

Private Sub PictureBox1_Click(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove

        Label1.Text = "X." & e.X & vbCrLf & "Y." & e.Y

    End Sub

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>