mdi child form size

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
 
H

Herfried K. Wagner [MVP]

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.
 
C

Chris Botha

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top