Results 1 to 4 of 4

Thread: MDI Scrollbars

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    MDI Scrollbars

    I am creating an application using MDI and the child forms are DockFill true.
    If the controls on the form are going outside the bounds of the MDI form (if on a smaller monitor), the scroll bars are not displaying.
    Is this normal? I would like to know how I can go about making sure the scroll bars are visible if the controls are going outside the viewable area.
    Thanks in advance for any suggestions.

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,398

    Re: MDI Scrollbars

    What are you blind? Nah I'm sorry that was just to easy. Try setting the form's AutoScroll property to True.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: MDI Scrollbars

    Quote Originally Posted by dday9 View Post
    What are you blind? Nah I'm sorry that was just to easy. Try setting the form's AutoScroll property to True.
    I already tried that and the scroll bars do not appear for me.
    Regarding your comment, I am partially sighted. I do not take offense to what you said, but others might.

    With child forms that are not docked fill, the scroll bars appear, just not when they are filling the entire client area.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: MDI Scrollbars

    Quote Originally Posted by BrailleSchool View Post
    I am creating an application using MDI and the child forms are DockFill true.
    It's a form. Treat it like one. If you want to treat it like a user control then use a user control. If you want an MDI child form to occupy the entire parent client area then you maximise it.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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