Solved

Picturebox with scrollbar

Posted on 1997-11-28
2
1,151 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

696 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