Link to home
Start Free TrialLog in
Avatar of Aldo Gatti
Aldo GattiFlag for Italy

asked on

Size an mdi form with ismdicontainer property true and child form regardless of screen resolution

Hello Experts,
I have to size an mdi form (800*600 pixel) with ismdicontainer property true and child form regardless of screen resolution, so that the child form are contained in the mdi form without the scroll bars in the mdi form.
If I change resolution or the format of charater from 96 dpi to 120 dpi the scroll bar appear in the mdi form,
how can I resize the child form so that the the scroll bar do not appear also if I change screen resolution?

Another question: how can I set the backcolor of the mdi form, it is also dark grey also if I set a different color, from example green?

Thanks at all for help
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
As far as the first part of the question you can use the Form.ReSize event to resize the child mdi's on the form by using the Form.ClientSize to get the available space on the form.