When you load an image into an imagebox it clips it to fit the box, how can i use scrollbars to move the image so i can see it all.
Thanks in advance.
Mark_Dep :P :)
Printable View
When you load an image into an imagebox it clips it to fit the box, how can i use scrollbars to move the image so i can see it all.
Thanks in advance.
Mark_Dep :P :)
Steps for image scrolling:
Place a Picture Box on your form
Place a Image Box in the Picture Box, Set autosize to true
Place a horizontal scrollbar and a vertical scroll bar.
after you load an image place this code
HScroll1.Max=Image1.Width-Picture1.Width
VScroll1.Max=Image1.Height-Picture1.Height
in the change event of the scroll bars place code to shift the image
Image1.left = -HScrolll.value
Image1.Top = -VScrolll.value