Position MDI child at lower right corner of MDI parent

T

Tom

I have a small window that I want positioned at the lower right of an open
MDI window. I know how to size it and place it (via .Left and .Top during
the form load event) but what I can't figure out is how to find the MDI's
inner window height/width. In VB6 we used ScaleHeight and ScaleWidth, but
there doesn't seem to be anything like this available for VB.NET.

Can anyone show me the code to place a child window in the lower right
corner of an open MDI parent? Thanks in advance.

Tom
 
C

Charles Law

Hi Tom

You can use the following to get the internal dimensions of a form

MyForm.ClientSize

HTH

Charles
 
G

Guest

Sorry to hijack the thread but I was just about to post on the same subject regading the inner dimensions of the mdi. However, does this take into account any toolbars on the mdi? I basically need a form to fill the whole mdi area but without being maximised, the child form would also have to have a borderstyle to allow it to be minimised

Any suggestions on setting the child form size

Thank
Steve
 
C

Charles Law

The documentation isn't clear, so I suggest you experiment a bit. The
ClientSize does exclude the title bar, but may include any toolbars.

HTH

Charles


Steve S said:
Sorry to hijack the thread but I was just about to post on the same
subject regading the inner dimensions of the mdi. However, does this take
into account any toolbars on the mdi? I basically need a form to fill the
whole mdi area but without being maximised, the child form would also have
to have a borderstyle to allow it to be minimised.
 

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