?
Solved

Picturebox with scrollbar

Posted on 1997-11-28
2
Medium Priority
?
1,152 Views
Last Modified: 2012-06-27
Is there any way to make a scrolling with a Picturebox?
0
Comment
Question by:JCAR
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 150 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

762 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