Control Scrolling

clear100-com used Ask the Experts™

I have an SSTAB box however with in this box i want a scrollable container, that has a bunch of text boxes and labels.  Is there anyway i Can make this happen?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
yes, put a picturebox on the ssTab control and name it picouter.  Then put a picturebox inside picouter and make it's size whatever you want, call this on picinner.  (you may want to make this picturebox outside of picouter first, then cut and poste it into picouter so you can more easily put the contained controls within it in design mode.)  Set the top and left to zero of picinner and set the borderstyle to none.  Then add a scrollbar to the right (separate control) and set its max value to that of picinner.height.  On the scrollbar_Change event, move the inner picture around.

Here's  the full technique along with sample code:

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial