Results 1 to 2 of 2

Thread: Scrolling the form

  1. #1

    Thread Starter
    Hyperactive Member abhid's Avatar
    Join Date
    Nov 2001
    Location
    3rd rock from the sun
    Posts
    467

    Exclamation Scrolling the form

    Hi everybody
    i have form which contains to many controls to fit in normal 800X600 view.
    Is there any way i can put scroll bars to a form depending upon height of form at runtime (like in web pages)
    Thanks

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    You would have to put the scrollbars on the form manually and then add code in the events of these scrollbars to scroll the form.
    I think the easiest way is to put all your controls on a picture box container and the put this picture box in an other, outer, picture box.
    The outer picture box should be resized with the form and now it's pretty easy to move the inner picture box when the users click on the scrollbars.

    IMHO scrollable forms is bad design, though.
    If you can't fit the controls on the form you might want to reconsider your design.

    Best regards

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