By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,887 Members | 1,214 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,887 IT Pros & Developers. It's quick & easy.

C# mouse coordinate

P: 1
Hi

I have a problem when I want to know how far my cursor is from the top of pictureBox.

I can get mouse coordinate but it is screen coordinate.
I can get the top position of my pictureBox but it is the distance from its container, not the screen coordinate.

So my question is...
1.How can I get the top position of pictureBox in screen coordinate?
or esle
2. How can I get mouse position in picture's container coordinate?

Thank you
Sep 22 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.