Panel scrollbars

Moorzee

Well-known member
Joined
May 31, 2006
Messages
92
Location
England
Programming Experience
3-5
I am trying to make a picturebox "zoomable" and to that end have placed a picturebox inside a panel. Two zoom buttons (+, -) on the form. On zoom pressed I either increase or decrease the size of the picturebox and set sizemode to stretch, I now check the height and width of pic box and show the panels scroll bars if needed. I've created a sub to handle panel.scroll event and reset the pic boxes location. However the scroll bars do not retain their values when I end scroll???? What could I be doing wrong?

Cheers for any guidance.
 
solution

Have sorted this by using a flowlayoutpanel instead of normal panel object and setting autoscroll property to true.

sweet.
 
Back
Top