picture box add scroll bar
I load a picture which is larger size than the picture box using
"Set Picpaint.Picture = LoadPicture(fn)"
I want to add horizontal and verticle scroll bar to the picture box.
however, when I click the scroll bar, the picture in the picture box seems to be able to scroll, but the viewable picture size is not the original picture size but the same size as the picture box, how to fix it
also, how can I make the scroll bar not showing if the picture size is smaller than the picture box?
thank you
Re: picture box add scroll bar
set it's Visible property to false?
Re: picture box add scroll bar
Also, set the picturebox's AutoSize propert to False in order to retain the original picture size.
1 Attachment(s)
Re: picture box add scroll bar
Here is a little app that you can scroll a larger picture. If the picture is smaller that the picturebox then the scrollbars aren't visible. ;)