Hello again!
I have a form (Form1) with some textbox, call it textbox1. With a button event I open a second form and hide de Form1. In this Form2 I dont use the value, I just make other things.. then open a another form, Form3 here I want to use the value from Form1.
I read that turn on public textbox is wrong, then I try to use get set method:
In Form1:
public string getvalue0
{
get { return textBox1.Text.ToString(); }
}
In Form3:
public string getvalue1
{
set { textBox1.Text = value; }
}
I know that I need to use something like this:
Form3 form3 = new Form3();
form3.getvalue1 = getvalue0;
But how? If I use this in Form2:
Form3 form3 = new Form3();
form3.Show();
this.Close();
Thanks a lot.