So I'm making a map editor with C# and XNA. I have currently got it setup so there is a windows for with a picture box, which the game is being displayed through. The problem is this, I want (0,0) to be the upper left corner of the picture box, not the game window.
At the moment im trying to return the cursor position but its relative to somewhere in the upper-middle portion of the window...the X-coordinates will go negative if the cursor is in the left third of the screen, and the Y-coordinetes will go negative if the cursor is in an upper third of the screen.
So again, how can I set the upper left corner of the pictureBox - which contains the game itself - as coordinates (0,0) of the mouse?
I'll post any code that may be required to help!! Thanks in advance!! :)