This is a multi-part message in MIME format.
------=_NextPart_000_0026_01C6F82A.01CB66A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I would very much like a code example of an MDI application including =
code to fit the ClientRectangle in an MDI=3DTrue WindowsForm.
All my attempts have ended in failure with the width and height =
properties causing the ClientRectangle control to show scroll bars as =
the values returned from the control are too big.
frmChild.Top =3D 0
frmChild.Left =3D 0
frmChild.Width =3D frmMain.ClientRectangle.Width=20
frmChild.Height =3D frmMain.ClientRectangle.Height=20
frmChild.Show()
In VB6 it was so simple
Garry
------=_NextPart_000_0026_01C6F82A.01CB66A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.5700.6" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial>I would very much like a code example of an MDI=20
application including code to fit the ClientRectangle in an MDI=3DTrue=20
WindowsForm.</FONT></DIV>
<DIV><FONT face=3DArial></FONT> </DIV>
<DIV><FONT face=3DArial>All my attempts have ended in failure with the =
width and=20
height properties causing the ClientRectangle control to show scroll =
bars as the=20
values returned from the control are too big.</FONT></DIV>
<DIV><FONT face=3DArial></FONT> </DIV>
<DIV>
<P><FONT face=3DArial>frmChild.Top =3D 0</FONT></P>
<P><FONT face=3DArial>frmChild.Left =3D 0</FONT></P>
<P><FONT face=3DArial>frmChild.Width =3D frmMain.ClientRectangle.Width =
</FONT></P>
<P><FONT face=3DArial>frmChild.Height =3D frmMain.ClientRectangle.Height =
</FONT></P>
<P><FONT face=3DArial>frmChild.Show()</FONT></P>
<P><FONT face=3DArial>In VB6 it was so simple</FONT></P>
<P><FONT face=3DArial></FONT> </P>
<P><FONT face=3DArial>Garry</FONT></P></DIV></BODY></HTML>
------=_NextPart_000_0026_01C6F82A.01CB66A0--