Possible Duplicate:
Passing Data Between Forms
Im new to Visual Studio 2012 & programming in c#, so excuse me if my question is trivial.
I have form1 that is getting quite full so I have add a second form (form2)
I have a click button event that will display it, but I cannot transfer info between the forms. In the file Form1.cs
it does not seem to know about Form2 & vice versa.
private void button4_Click(object sender, EventArgs e)
{
OneDimLife.Form2 Form = new OneDimLife.Form2();
Form.Show();
//int i, j, N, M;
//N = panel1.Width; M = panel1.Height;
}
I probably want panel1 on form1 to be copied to panel1 on form2 (maybe even tripled in size).