Position of mouse click on PictureBox image

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have an image displayed in a PictureBox and the displayed image is resized
and centred. When I click on the image, I can get the coordinates relative to
the PictureBox but I would like the coordinates to be relative to the image.
I've tried using PointToClient but this gives me wrong values (eg. negative
x). Is there a PictureBox property that I need to change? Or at least a
property which describes the position and size of the displayed image that I
can access from the code?

Thank you in advance
 
You have nothing to loose.

Try ClientToScreen, ScreenToClient, DPtoLP and LPtoDP


Good day

Crest
 
Back
Top