Solved

Picturebox with scrollbar

Posted on 1997-11-28
2
1,144 Views
Last Modified: 2012-06-27
Is there any way to make a scrolling with a Picturebox?
0
Comment
Question by:JCAR
2 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 50 total points
ID: 1442773
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
 

Expert Comment

by:irmantasn
ID: 2679202

You can find example here:

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now