Anyone know why the MDIClient object (the client window inside of an
MDIForm that is the parent of all the MDI child windows) is not available
(maybe as a property of the MDI form)?

I noticed that the MDIForm.ClientRectangle is not the same as the
MDIClient.ClientRectangle because of that annoying border that is put on
the MDIClient window.  You can get to the MDIClient object by using code
like this....

        Dim f As New Form()
        f.MdiParent = Me
        _MDIClient = f.Parent
        f.Dispose()
        f = Nothing

...I can get to the MDIClient object and get the proper size of the client
area.  It also allows me to paint the client area if I want to.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to