Need to exceed vertical scroll bar max allowed height

I have a picture control within a picture control.  Next to the outside picture control I have a invisible vertical scroll bar.  On the inner picture control I have a control array.  The control array grows vertically, increasing the height of the inner picture control as needed.  When the height of the inner picture control exceeds the height of the outer picture control, the vertical scroll bar is made visible and is used to scroll the inner picture control.  

I use the height properties of the picture controls to set the min and max propeties of the vertical scroll bar:

verScroll.Min = 0
verScroll.Max = picInside.Height - picOutside.Height

This works great, except when verScroll.Max exceeds 32767!  The control array items listed below are there, just not accessible by the scroll bar.  Does anyone know how I can reach these other items?  Does anyone know a work around?  I'll consider using other controls if anyone has a different approach.

In case you're wondering, this is how I get the inner picture control and vertical scroll bar to work together:

Private Sub verScroll_Change()

    picInside.Top = -verScroll.Value

End Sub
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

from Lee Weiner

He is the man
MariaHaltAuthor Commented:
That's what I'm doing.  

Referencing your code:

VScroll1.Max = Picture2.Height - Picture1.ScaleHeight

If Pictur2.Height - Picture1.ScaleHeight > 32767 an error overflow error occurs.

The problem is that the max value the scroll bar can be set to is 32767.  How can I work around this constraint?


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MariaHaltAuthor Commented:
Percentages!!!  Why didn't I think of that???  Thanks for pointing me in the right direction!
no problem

Have fun
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.