Autoscroll to a custom drawn rectangle in Scrollable control
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
Hi! I have panel control and a picture box in it with SizeMode = Stretch. AutoScroll property of the Panel control is true. The picture box contains an image large enough to show the scroll bars of the panel control. A rectangle is drawn over the image with different location and size. Rectangle size always less than the display area of the panel control. How can I scroll to the Drawn rectangle so that the drawn rectangle is completely visible in the Display area of the Panel control? Thank You.