Click to See Complete Forum and Search --> : ScrollWindow
meetsujith
Aug 22nd, 2000, 03:18 AM
My form needs a scroll bar.It has a few controls which are scattered and I need to show the user all the controls on the screen.
To do this ,I need a scrollbar.
If anybody could tell me how to use the ScrollWindow API I would be extremely grateful.
oetje
Aug 22nd, 2000, 03:51 AM
Look at the API section of the platform SDK at http://msdn.microsoft.com
Crazy D
Aug 22nd, 2000, 04:02 AM
You can do it pretty easy without API and just 2 pictureboxes and scrollbars (one picturebox is the size of the form, the "view", the other picturebox is inside the "view" picturebox, and is as large as you need it to be to fit all the controls.).
The scrollmax is the difference in height between those 2 pictureboxes, and in the scroll events put something like
picControls.Top = -Scrollbar.Value
It's pretty easy and works great.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.