Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Scroll bar vb2010

Posted on 2011-02-20
2
Medium Priority
?
976 Views
Last Modified: 2012-08-14
Hello all,

I need your help with a scrollBar issue.

I have a PictureBox1 in my From4.

Beside, i have a VScrollBar1.

What i want to do is to scroll down my PictureBox1 from the top to the bottom.

How can i do that please?


0
Comment
Question by:Wilder1626
2 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 2000 total points
ID: 34939176
Can you give more details?

Typically you'd set the SizeMode of the PictureBox to AutoSize so that it becomes the same size as the Image loaded within.
Then you'd place that PictureBox inside a PANEL that has AutoScroll set to True.
Now you'll have ScrollBars that allow you to scroll around the Image.
0
 
LVL 11

Author Closing Comment

by:Wilder1626
ID: 34939209
This is easier then VB6.

Thanks for your help. This is great.
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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

972 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