C
Carlos
Hi all,
I am trying to access a public field of another form class within
the same namespace. The field is public, what is the best way
to access it from a different class? I defined as
private MyNameSpace.Form1 cForm1;
and I am trying to use it later as
TextBox.Text = cForm1.TextBox.Text;
I see the properties, but I have a warning telling me that cForm1 is never
assigned, and that its value will always be null. How can I avoid that?
Thanks again in advance,
Carlos.
I am trying to access a public field of another form class within
the same namespace. The field is public, what is the best way
to access it from a different class? I defined as
private MyNameSpace.Form1 cForm1;
and I am trying to use it later as
TextBox.Text = cForm1.TextBox.Text;
I see the properties, but I have a warning telling me that cForm1 is never
assigned, and that its value will always be null. How can I avoid that?
Thanks again in advance,
Carlos.