MDI form scrolling and size issues

  • Thread starter Thread starter Tim Frawley
  • Start date Start date
T

Tim Frawley

When I set the Size property on the VB.NET form properties pane to a
size of 800, 1200 the 1200 always resets back to 1036? Why is that?

When I open a child form in the MDI parent the only way the MDI
displays scroll bars if if the child form is not maximized and is
moved over the edge of the MDI. Is there a way to turn those scroll
bars on when the child form is maximized?
 
Tim Frawley said:
When I set the Size property on the VB.NET form properties pane to
a size of 800, 1200 the 1200 always resets back to 1036? Why is
that?

The client rectangle of a window mustn't be bigger than the screen.
When I open a child form in the MDI parent the only way the MDI
displays scroll bars if if the child form is not maximized and is
moved over the edge of the MDI. Is there a way to turn those
scroll bars on when the child form is maximized?

Why? If it is maximized, the whole child is visible. There's nothing to
scroll.
 
Hello,

Tim Frawley said:
When I set the Size property on the VB.NET form properties
pane to a size of 800, 1200 the 1200 always resets back
to 1036? Why is that?

Forms cannot be bigger than the screen,
When I open a child form in the MDI parent the only
way the MDI displays scroll bars if if the child form is
not maximized and is moved over the edge of the MDI.
Is there a way to turn those scroll bars on when the
child form is maximized?

For me, this seems to be a bug. I don't know a way to turn the scrollbars
on.

Regards,
Herfried K. Wagner
 
Hello,

Armin Zingler said:
Why? If it is maximized, the whole child is visible. There's nothing to
scroll.

If the MDI container is not maximized and the child is maximized, parts of
the child may not be visible (some of the controls). No scrollbars are
shown.

Regards,
Herfried K. Wagner
 
Herfried K. Wagner said:
Hello,



If the MDI container is not maximized and the child is maximized,
parts of the child may not be visible (some of the controls). No
scrollbars are shown.

??

These are the scrollbars for the MDI child because some controls are not
visible, but IMO he was talking about the scrollbars of the MDI parent. The
latter is only shown whenever parts of the child are not visible. That's not
the case when it is maximized.
 
Tim Frawley said:
When I set the Size property on the VB.NET form properties pane to a
size of 800, 1200 the 1200 always resets back to 1036? Why is that?

When I open a child form in the MDI parent the only way the MDI
displays scroll bars if if the child form is not maximized and is
moved over the edge of the MDI. Is there a way to turn those scroll
bars on when the child form is maximized?

There is probably a Style bit you can set to accomplish this. But understand
this: even if the scroll bars are visible, there will be nothing to scroll.
If you are trying to scroll the child form, why don't you turn on the
scrollable propertys (AllowScroll, AutoScroll, AutoScrollMargin etc...) of
the child?

The MDI parent cares nothing about the child's controls, it only cares about
the child window- that is, if the child controls are hidden, the MDI parent
wont scroll the contents of the child.

HTH,
Jeremy
 
Back
Top