Article View: borland.public.csharpbuilder.language.csharp
Article #252Re: Problem with closing an MDI Child Windows
From: Marc Rohloff TeamB
Date: Tue, 25 Oct 2005 23:19
Date: Tue, 25 Oct 2005 23:19
20 lines
2026 bytes
2026 bytes
On 25 Oct 2005 07:21:12 -0700, Peter Jones wrote: <snip> Peter, please watch your quoting. It is not necessary to quote the whole previous message. > Now the app works better, since I can close the > this.g_objfrmChild by doing this.ActiveMdiChild.Close(). But > how come closing the Child does not automatcally set it to > null. So even though the Child is closed, next time I click > NewChild menu item no Child is displayed. Any suggestions? This is pretty much the nature of global variables and one good reason to avoid them. If you must then reset the variable in the 'Close' event of he child. -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID:
<osfl5v41ddez.dlg@marcrohloff.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!news.netcologne.de!newsfeed-fusi.netcologne.de!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<435d05b8$1@newsgroups.borland.com> <1dhje2fm97vwb.dlg@marcrohloff.com> <435e3f58$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,5065392821169b29 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: Problem with closing an MDI Child Windows Newsgroups: borland.public.csharpbuilder.language.csharp User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <435d05b8$1@newsgroups.borland.com> <1dhje2fm97vwb.dlg@marcrohloff.com> <435e3f58$1@newsgroups.borland.com> Date: Tue, 25 Oct 2005 19:19:44 -0400 Message-ID: <osfl5v41ddez.dlg@marcrohloff.com> X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR X-Antivirus: avast! (VPS 0543-1, 10/25/2005), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 65.31.9.204 X-Trace: newsgroups.borland.com 1130281918 65.31.9.204 (25 Oct 2005 16:11:58 -0700) Lines: 20 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!news.netcologne.de!newsfeed-fusi.netcologne.de!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail