I'm trying to create a level editor with Winforms for my XNA game, but I have run in to a small issue. I have a XNA game class running in a picturebox control, but when I have my mouse being tracked in the control the X position of the mouse is tracked fine but the Y position is not tracked correctly. The further from the top of the control the less the mouse is being tracked. I thought that setting the Window Handle of the mouse was the problem, but that is set correctly.
closed as off-topic by Josh Petrie♦ Apr 7 at 15:38
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions about debugging a problem in your project must present a concise selection of code and context so as to allow a reader to diagnose the issue without needing to read all of your code or to engage in extensive back-and-forth dialog. For more information, see this meta thread." – Josh Petrie