I have two forms, and I need pass a value from form1.textbox1 to form2.variable
Form1:
string Ed = \"\", En = \"\";
public string En1
{
get { r
The debugger doesn't complain about anything? Hm. Maybe you could try to modify your button1_click method in form 1 as follows:
private void button1_Click(object sender, EventArgs e)
{
Form2 F2 = new Form2();
Form2.Parent = this;
F2.Show();
F2.textbox1value = F2.Parent.Ed;
F2.textbox2value = F2.Parent.En;
}