mdi child form size

  • Thread starter Thread starter Jeff Ogata
  • Start date Start date
J

Jeff Ogata

Hi all,

It looks like there is a max size imposed on MDI child forms that depends on
screen resolution. For example, when i'm at 1024x768, the max height of the
child form is 780. When I'm at 800x600, it's 612. I programmatically set
the size to be larger than this, but it does not work.

Is there a way around this? I'd really like to be able to set the height of
the mdi child to be a specific height regardless of the screen resolution.

Thanks,
Jeff
 
Jeff Ogata said:
It looks like there is a max size imposed on MDI child forms that depends on
screen resolution. For example, when i'm at 1024x768, the max height of the
child form is 780. When I'm at 800x600, it's 612. I programmatically set
the size to be larger than this, but it does not work.

Is there a way around this? I'd really like to be able to set the height of
the mdi child to be a specific height regardless of the screen resolution.

Forms cannot be larger than the screen. That's a limitation of Windows.
 
A workaround may be to set the AutoScroll property of the MDI form to true
and also, after creating it, its WindowState property to Maximized. This
will make it fill the client area of the parent, and you will have a scroll
bar to reach any controls too far down to show. I'm not sure if this is what
you are attempting to achieve.
 
Back
Top