Accessing parent form variable from child form

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages