Exchange of data between forms [C#]
#4

 Read the full reply:

Usually when you close The form The controls on that form deinitializes, it is better to save the data in a public variable(or a private one and access it thru public methods);
private struct MyData{
     public string  textBox1
};
public MyData data = new MyData();
....
data.textBox1 = textBox36.Text;
....
Form1 form = new Form1();
form.ShowDialog();
this.hash_user.Text = form.data.textBox1;

public string data;
....
data= textBox36.Text;
....
Form1 form = new Form1();
form.ShowDialog();
this.hash_user.Text = form.data;


Messages In This Thread
[No subject] - by Paramount - 08-06-2013, 01:24 PM
[No subject] - by someone - 08-06-2013, 04:52 PM
[No subject] - by Paramount - 08-06-2013, 04:56 PM
[No subject] - by someone - 08-06-2013, 06:14 PM
[No subject] - by Paramount - 08-06-2013, 08:55 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)