Accessing parent form variable from child form
- From: "Ladislav Soukup" <soukup@xxxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 11:30:41 +0200
Hi,
I'm now migrating to C# and .NET 1.1 programming from PHP and PERL and I
have one problem and I cannot solve it (google didn't help).
I have two forms - FORM1 and FORM2
FORM1 will make instance of FORM2 and open it...
[code]
Form frm = new FORM2();
frm.Open();
[/code]
Now... when Form2 is closing I need to change some variables in FORM1 and
call one public function in FORM1.
How can I do this? Should I make new instance of FORM1 in FORM2 code, or can
I make direct call from FORM2 to FORM1 variables and methods?
Please help...
Thanks for any response (link to article, ...)
----------------------------------
Ladislav Soukup
Radio CITY / Radio BLANÍK
246 046 159
.
- Follow-Ups:
- RE: Accessing parent form variable from child form
- From: Anders Tornblad, SPCS, Sweden
- Re: Accessing parent form variable from child form
- From: Fabien Bezagu
- RE: Accessing parent form variable from child form
- Prev by Date: Re: Thread
- Next by Date: RE: Why Socket is faster than TcpClient?
- Previous by thread: Re: C# Web Service returning custom objects
- Next by thread: Re: Accessing parent form variable from child form
- Index(es):
Relevant Pages
|