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.&nbsp; 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>&nbsp;</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.&nbsp; I=20
am guessing it is from the call of =3D Me.MdiParent.&nbsp; If I move the =
me.close=20
to the top of the sub, it closes the form as expected but then=20
AircraftEntry&nbsp;does not open as a child.&nbsp; 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--

Re: MDI Parent and Childs - Opening and Closing by William

William
Mon Jul 14 12:29:13 CDT 2003

This is a multi-part message in MIME format.

------=_NextPart_000_010E_01C34A0B.EAB32310
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I would try something. Pass in a ref to the MDIParent to the =
frmEntry(Me) on form construction. Save that to a private var of type =
Form (i.e. myMDIParent). Now set AircraftEntry.MdiParent =3D =
myMDIParent and see if that helps.
"Brian P. Hammer" <bphammer@SpamMeNotCAAP.com> wrote in message =
news:OfQ3CmhSDHA.212@TK2MSFTNGP10.phx.gbl...
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_010E_01C34A0B.EAB32310
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.3790.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I would try something.&nbsp; Pass in a =
ref to the=20
MDIParent to&nbsp;the frmEntry(Me) on form construction.&nbsp; Save that =
to a=20
private var of type Form (i.e. myMDIParent).&nbsp; Now set=20
AircraftEntry.MdiParent =3D myMDIParent and see if that =
helps.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Brian P. Hammer" &lt;<A=20
=
href=3D"mailto:bphammer@SpamMeNotCAAP.com">bphammer@SpamMeNotCAAP.com</A>=
&gt;=20
wrote in message <A=20
=
href=3D"news:OfQ3CmhSDHA.212@TK2MSFTNGP10.phx.gbl">news:OfQ3CmhSDHA.212@T=
K2MSFTNGP10.phx.gbl</A>...</DIV>
<DIV>I have a child form that opens within the MDIParent.&nbsp; From =
this=20
child form (frmEntry), I open another child form(frmAircraftEntry). I =
do this=20
by</DIV>
<DIV><FONT color=3D#0000ff>Dim</FONT> AircraftEntry <FONT=20
color=3D#0000ff>As</FONT> <FONT color=3D#0000ff>New</FONT>=20
frmAircraftEntry()<BR>AircraftEntry.MdiParent =3D <FONT=20
color=3D#0000ff>Me</FONT>.MdiParent<BR>AircraftEntry.Show()<BR><FONT=20
color=3D#0000ff>Me</FONT>.Close() ' close frmEntry</DIV>
<DIV>&nbsp;</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.&nbsp;=20
I am guessing it is from the call of =3D Me.MdiParent.&nbsp; If I move =
the=20
me.close to the top of the sub, it closes the form as expected but =
then=20
AircraftEntry&nbsp;does not open as a child.&nbsp; What am I doing =
wrong, or=20
is there another way to determine the MDI parent?</DIV>
<DIV><BR>-- <BR>Brian P. Hammer</DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_010E_01C34A0B.EAB32310--


Re: MDI Parent and Childs - Opening and Closing by William

William
Mon Jul 14 12:39:37 CDT 2003

This is a multi-part message in MIME format.

------=_NextPart_000_0144_01C34A0D.5E5F4CC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

You may also first want to try setting Me.MdiParent to a local var first =
and then setting Aircraft.MdiParent to that local var. Then the local =
var should get gc'd on close.
"William Stacey" <staceyw@mvps.org> wrote in message =
news:e#lH01iSDHA.1688@TK2MSFTNGP11.phx.gbl...
I would try something. Pass in a ref to the MDIParent to the =
frmEntry(Me) on form construction. Save that to a private var of type =
Form (i.e. myMDIParent). Now set AircraftEntry.MdiParent =3D =
myMDIParent and see if that helps.
"Brian P. Hammer" <bphammer@SpamMeNotCAAP.com> wrote in message =
news:OfQ3CmhSDHA.212@TK2MSFTNGP10.phx.gbl...
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_0144_01C34A0D.5E5F4CC0
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.3790.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>You may also first want to try setting =
Me.MdiParent=20
to a local var first and then setting Aircraft.MdiParent to that local=20
var.&nbsp; Then the local var should get gc'd on close.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"William Stacey" &lt;<A=20
href=3D"mailto:staceyw@mvps.org">staceyw@mvps.org</A>&gt; wrote in =
message <A=20
=
href=3D"news:e#lH01iSDHA.1688@TK2MSFTNGP11.phx.gbl">news:e#lH01iSDHA.1688=
@TK2MSFTNGP11.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>I would try something.&nbsp; Pass in =
a ref to the=20
MDIParent to&nbsp;the frmEntry(Me) on form construction.&nbsp; Save =
that to a=20
private var of type Form (i.e. myMDIParent).&nbsp; Now set=20
AircraftEntry.MdiParent =3D myMDIParent and see if that =
helps.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Brian P. Hammer" &lt;<A=20
=
href=3D"mailto:bphammer@SpamMeNotCAAP.com">bphammer@SpamMeNotCAAP.com</A>=
&gt;=20
wrote in message <A=20
=
href=3D"news:OfQ3CmhSDHA.212@TK2MSFTNGP10.phx.gbl">news:OfQ3CmhSDHA.212@T=
K2MSFTNGP10.phx.gbl</A>...</DIV>
<DIV>I have a child form that opens within the MDIParent.&nbsp; From =
this=20
child form (frmEntry), I open another child form(frmAircraftEntry). =
I do=20
this by</DIV>
<DIV><FONT color=3D#0000ff>Dim</FONT> AircraftEntry <FONT=20
color=3D#0000ff>As</FONT> <FONT color=3D#0000ff>New</FONT>=20
frmAircraftEntry()<BR>AircraftEntry.MdiParent =3D <FONT=20
color=3D#0000ff>Me</FONT>.MdiParent<BR>AircraftEntry.Show()<BR><FONT =

color=3D#0000ff>Me</FONT>.Close() ' close frmEntry</DIV>
<DIV>&nbsp;</DIV>
<DIV>What I notice is that if I minimize the newly created form=20
AircraftEntry, there is still an instance of frmEntry running even =
though I=20
closed it.&nbsp; I am guessing it is from the call of =3D =
Me.MdiParent.&nbsp;=20
If I move the me.close to the top of the sub, it closes the form as =
expected=20
but then AircraftEntry&nbsp;does not open as a child.&nbsp; What am =
I doing=20
wrong, or is there another way to determine the MDI parent?</DIV>
<DIV><BR>-- <BR>Brian P. =
Hammer</DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0144_01C34A0D.5E5F4CC0--


Re: MDI Parent and Childs - Opening and Closing by Brian

Brian
Mon Jul 14 18:30:27 CDT 2003

This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C34A35.FFA4FA30
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks, I am now storing the MdiParent as a property which seems to =
work. Any issue with this that you know of?


Thanks

--=20
Brian P. Hammer
"William Stacey" <staceyw@mvps.org> wrote in message =
news:e%23lH01iSDHA.1688@TK2MSFTNGP11.phx.gbl...
I would try something. Pass in a ref to the MDIParent to the =
frmEntry(Me) on form construction. Save that to a private var of type =
Form (i.e. myMDIParent). Now set AircraftEntry.MdiParent =3D =
myMDIParent and see if that helps.
"Brian P. Hammer" <bphammer@SpamMeNotCAAP.com> wrote in message =
news:OfQ3CmhSDHA.212@TK2MSFTNGP10.phx.gbl...
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_000D_01C34A35.FFA4FA30
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>Thanks, I am now storing the MdiParent as a property which seems to =

work.&nbsp; Any issue with this that you know of?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV>
<DIV><BR>-- <BR>Brian P. Hammer</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"William Stacey" &lt;<A=20
href=3D"mailto:staceyw@mvps.org">staceyw@mvps.org</A>&gt; wrote in =
message <A=20
=
href=3D"news:e%23lH01iSDHA.1688@TK2MSFTNGP11.phx.gbl">news:e%23lH01iSDHA.=
1688@TK2MSFTNGP11.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>I would try something.&nbsp; Pass in =
a ref to the=20
MDIParent to&nbsp;the frmEntry(Me) on form construction.&nbsp; Save =
that to a=20
private var of type Form (i.e. myMDIParent).&nbsp; Now set=20
AircraftEntry.MdiParent =3D myMDIParent and see if that =
helps.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Brian P. Hammer" &lt;<A=20
=
href=3D"mailto:bphammer@SpamMeNotCAAP.com">bphammer@SpamMeNotCAAP.com</A>=
&gt;=20
wrote in message <A=20
=
href=3D"news:OfQ3CmhSDHA.212@TK2MSFTNGP10.phx.gbl">news:OfQ3CmhSDHA.212@T=
K2MSFTNGP10.phx.gbl</A>...</DIV>
<DIV>I have a child form that opens within the MDIParent.&nbsp; From =
this=20
child form (frmEntry), I open another child form(frmAircraftEntry). =
I do=20
this by</DIV>
<DIV><FONT color=3D#0000ff>Dim</FONT> AircraftEntry <FONT=20
color=3D#0000ff>As</FONT> <FONT color=3D#0000ff>New</FONT>=20
frmAircraftEntry()<BR>AircraftEntry.MdiParent =3D <FONT=20
color=3D#0000ff>Me</FONT>.MdiParent<BR>AircraftEntry.Show()<BR><FONT =

color=3D#0000ff>Me</FONT>.Close() ' close frmEntry</DIV>
<DIV>&nbsp;</DIV>
<DIV>What I notice is that if I minimize the newly created form=20
AircraftEntry, there is still an instance of frmEntry running even =
though I=20
closed it.&nbsp; I am guessing it is from the call of =3D =
Me.MdiParent.&nbsp;=20
If I move the me.close to the top of the sub, it closes the form as =
expected=20
but then AircraftEntry&nbsp;does not open as a child.&nbsp; What am =
I doing=20
wrong, or is there another way to determine the MDI parent?</DIV>
<DIV><BR>-- <BR>Brian P. =
Hammer</DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_000D_01C34A35.FFA4FA30--