C
Claudia Fong
Hi,
I have 2 forms. Form1 has a button which calls form2, but I need to know
the value of the form1.textBox1.text.
When I show form2, I try to use the code bellow:
textBox1.Text = formst.textBox1.Text;
but this generates error -->
WindowsApplication1.frmdisplaystock.textBox1' is inaccessible due to its
protection level
Maybe the better way is to define a global variable, but where should I
declare it?
I put between namespace and public class, but it generates the error -->
expected class,delegate,enum, interface or struc.
Can someone help me?
Cheers!
Claudi
I have 2 forms. Form1 has a button which calls form2, but I need to know
the value of the form1.textBox1.text.
When I show form2, I try to use the code bellow:
textBox1.Text = formst.textBox1.Text;
but this generates error -->
WindowsApplication1.frmdisplaystock.textBox1' is inaccessible due to its
protection level
Maybe the better way is to define a global variable, but where should I
declare it?
I put between namespace and public class, but it generates the error -->
expected class,delegate,enum, interface or struc.
Can someone help me?
Cheers!
Claudi