Ian,

I need to exactly place windows within the client area.  The application
that I am porting does a lot of hand-holding for the user and places
windows for them.  I also would like to get rid of that annoying border
that is placed around the MDI client area.

Here is a screen shot of the app so you can get a better idea what I
mean...

(vb6 client)
http://julianna.baseline.com/screen1.gif

(beginning of dotnet client, notice the border around the mdi client area)
http://julianna.baseline.com/dotnet1.gif






                                            To:    [EMAIL PROTECTED]
                                            cc:
           Ian Griffiths                    Subject:  Re: [DOTNET] MDIClient Object 
not available?....
           <[EMAIL PROTECTED]>
           Sent by: dotnet discussion
           <[EMAIL PROTECTED]>


           05/17/2002 03:37 AM
           Please respond to dotnet
           discussion






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.

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