This is a multi-part message in MIME format.
------=_NextPart_000_0008_01C349EF.98765890
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I have a child form that opens within the MDIParent. From this child =
form (frmEntry), I open another child form(frmAircraftEntry). I do this =
by
Dim AircraftEntry As New frmAircraftEntry()
AircraftEntry.MdiParent =3D Me.MdiParent
AircraftEntry.Show()
Me.Close() ' close frmEntry
What I notice is that if I minimize the newly created form =
AircraftEntry, there is still an instance of frmEntry running even =
though I closed it. I am guessing it is from the call of =3D =
Me.MdiParent. If I move the me.close to the top of the sub, it closes =
the form as expected but then AircraftEntry does not open as a child. =
What am I doing wrong, or is there another way to determine the MDI =
parent?
--=20
Brian P. Hammer
------=_NextPart_000_0008_01C349EF.98765890
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.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>I have a child form that opens within the MDIParent. From =
this child=20
form (frmEntry), I open another child form(frmAircraftEntry). I do this =
by</DIV>
<DIV><FONT color=3D#0000ff>Dim</FONT> AircraftEntry <FONT =
color=3D#0000ff>As</FONT>=20
<FONT color=3D#0000ff>New</FONT> =
frmAircraftEntry()<BR>AircraftEntry.MdiParent =3D=20
<FONT =
color=3D#0000ff>Me</FONT>.MdiParent<BR>AircraftEntry.Show()<BR><FONT=20
color=3D#0000ff>Me</FONT>.Close() ' close frmEntry</DIV>
<DIV> </DIV>
<DIV>What I notice is that if I minimize the newly created form =
AircraftEntry,=20
there is still an instance of frmEntry running even though I closed =
it. I=20
am guessing it is from the call of =3D Me.MdiParent. If I move the =
me.close=20
to the top of the sub, it closes the form as expected but then=20
AircraftEntry does not open as a child. What am I doing =
wrong, or is=20
there another way to determine the MDI parent?</DIV>
<DIV><BR>-- <BR>Brian P. Hammer</DIV></BODY></HTML>
------=_NextPart_000_0008_01C349EF.98765890--