Results 1 to 3 of 3

Thread: ScrollWindow

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    Chennai,India
    Posts
    7
    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.
    !@#$%

  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Look at the API section of the platform SDK at http://msdn.microsoft.com

  3. #3
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    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.
    Hope this helps

    Crazy D

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width