I'm guessing there is no property on the form to give you this because as
the documentation says, the MdiClient class "supports the .NET
infrastructure and is not intended to be used directly from your code."

So it's not intended for public consumption.  There's not even any guarantee
that it will be there in future versions of the framework.  So writing code
with a dependency on it is probably not a good idea.  What exactly are you
trying to achieve?  (Why do you need to know the exact client area size?)


--
Ian Griffiths
DevelopMentor

----- Original Message -----
From: "Matt Horne" <[EMAIL PROTECTED]>


> 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