You can use the Reference Type feature of the class ..... Form that you create is actually a class only .... What you can do is ... For Example :
If you have two forms .... Form1 and Form2
You have some data on Form1 and you want to pass it on to Form2 .... for example you want to pass the text value of the TextBox which is on Form1 to Form2
Then you can create a Overloaded Constructor of Form2 and pass the current object of Form1 to that ..... refer the code below
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Form2 frm = new Form2(this);
frm.Show();
}
}
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
Form1 obj;
public Form2(Form1 frm1)
{
InitializeComponent();
obj = frm1;
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show(obj.Controls["textbox1"].Text);
}
}