G
Guest
I have a form1. It has a textbox1. I created another form2. I want to grab
the value of textbox1 of form1 into form2. I am doing like this
In form2
form1 myform = new form1();
string mystr = myform.textbox1.Text;
But it is giving me follwing error.
form1.txtNewMake' is inaccessible due to its protection level
Where is the problem.
the value of textbox1 of form1 into form2. I am doing like this
In form2
form1 myform = new form1();
string mystr = myform.textbox1.Text;
But it is giving me follwing error.
form1.txtNewMake' is inaccessible due to its protection level
Where is the problem.