Article View: borland.public.delphi.winforms.controls.using
Article #2Re: one form influencing another
From: Wayne Niddery [TeamB]
Date: Mon, 11 Sep 2006 15:17
Date: Mon, 11 Sep 2006 15:17
16 lines
1880 bytes
1880 bytes
Brigitte Spatz wrote:
>
> I tried mgds.Ground.Close_All; where mgds is the unit, Ground is the
> class (Ground = class(System.Windows.Forms.Form)) and Close_All is a
> public method.
Ok, that's a problem - Ground is the *class type* not an instance of that
type. You need to have access to the instance. If Ground is the type of your
main form (and I'm assuming you are using VCL.Net) then try this:
Ground(Application.MainForm).Close_All;
--
Wayne Niddery - Winwright, Inc (www.winwright.ca)
"Nurture your mind with great thoughts. To believe in the heroic makes
heroes." - Benjamin Disraeli
Technical Details
Message-ID:
<45057e04$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<op.tfeh4mb0i0jcwv@acer> <44fd87b9$1@newsgroups.borland.com> <op.tfh5rltti0jcwv@acer> <45004696@newsgroups.borland.com> <op.tfipxmrti0jcwv@acer> <450186da$1@newsgroups.borland.com> <45052555$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,bdf5a6ead14cc213 X-Google-Attributes: gid1eff29,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca> From: "Wayne Niddery [TeamB]" <wniddery@chaffaci.on.ca> Newsgroups: borland.public.delphi.winforms.controls.using References: <op.tfeh4mb0i0jcwv@acer> <44fd87b9$1@newsgroups.borland.com> <op.tfh5rltti0jcwv@acer> <45004696@newsgroups.borland.com> <op.tfipxmrti0jcwv@acer> <450186da$1@newsgroups.borland.com> <45052555$1@newsgroups.borland.com> Subject: Re: one form influencing another Date: Mon, 11 Sep 2006 11:17:25 -0400 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 69.17.150.141 Message-ID: <45057e04$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1157987844 69.17.150.141 (11 Sep 2006 08:17:24 -0700) X-Authenticated-User: wniddery Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail