Re: Newbie: access function of Form1 from Form2
- From: "Armin Zingler" <az.nospam@xxxxxxxxxx>
- Date: Tue, 17 May 2005 15:32:20 +0200
"steve" <steve@xxxxxxxx> schrieb
Whenever you want to access an object, you need a reference. If you don't have it you must make it accessible. This is usually done by passing it as a property value or as a procedure argument.
Yes, but as i said, Form 1 is "alive" in the background. The object exists. Wouldnt it be an overkill to instantiate a new (non-visible) form1 as New myProject.Form1 ?
Since it exists I just want to access its methods from form2.
If i had killed it and instantiated a Form2, I would understand.
I did not write that you should create a new instance. You must pass a reference to the existing instance.
Armin
.
- References:
- Newbie: access function of Form1 from Form2
- From: steve
- Re: Newbie: access function of Form1 from Form2
- From: Armin Zingler
- Re: Newbie: access function of Form1 from Form2
- From: steve
- Newbie: access function of Form1 from Form2
- Prev by Date: Re: programatically set the color to tab control
- Next by Date: Re: Datagrid TableStyles question...
- Previous by thread: Re: Newbie: access function of Form1 from Form2
- Next by thread: Re: Newbie: access function of Form1 from Form2
- Index(es):
Relevant Pages
|