How do you Locate Coordinates of Large Picture Behing Picture Box?
Posted on 2001-09-04
I have a picture box with a extremely large picture behind it. I use the (picMain.PaintPicture LoadPicture(Pic), x, y) to manuever around the large picture. How do you determine the x,y coordinates of the large picture?
This is what I'm trying to do: Inside the large picture box I have 10 small picture boxes that you can move around by clicking on one and then clicking on the location you want to move it to. To do this I use the Left, Top Coordinates of the picture boxes. Although, now, I have a large "map" (Much bigger than the large picture box) behind the large picture box that you can move around. Although, using the left, top properties, when I move to a different position on the main map, the 10 small picture boxes(Units), stay at the same spot on the large picture box instead of staying at their locations on the "map" behind the large picture box. When I move on the map I want the large picture box to remain in its same position. The problem with using left, top properties is that when moving on the map it would be possible to move so far that you would not be able to see the small picture boxes any longer(But I'm not sure that with the left,top properties this would be possible). So I would appreciate any help solving this problem. Thanks.