i'm a c++ programmer and i have only basic skills of C#, so i hope you could help me.
I have two windows forms, the second one has an overloaded constructor, for example Form2(ref String sData), Form1 has a label, a user enters text in a textbox on second form and the entered text appears in the first form label.
One way is to get label by getting parent window, but this does not suite me, because i also need to change private member or even local variable..
The other way (it would be very simple in C++:)) I pass reference to a form constructor, then i save the reference in a class member, on some event (form close) i get that member (reference) and set the referenging object with the textbox value.
The question is how to save the reference wich i have in my constructor, and how to use it later in C#??
thanx in advance