Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1160
  • Last Modified:

Picturebox with scrollbar

Is there any way to make a scrolling with a Picturebox?
0
JCAR
Asked:
JCAR
1 Solution
 
MikeP090797Commented:
Create the first picture (picOwner)
Create the second picture (picReal) inside the first one, and set it's autosize property to true.
Put two scrollbars on the edges of the container pictures.
In the Change event of the scrollbars put:
picReal.Top=-scrV.Value
picReal.Left=-scrH.Value
Load the picture into picReal at runtime.
In the resize event of the picturebox put some code to show/hide the scrollbars as needed.
0
 
irmantasnCommented:

You can find example here:

http://www.vb-helper.com/HowTo/scrwin.zip
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now