Let see an example, I assume your value of form 1 is
string
then, make a constructor for
form2 that accept that string value and in calling new
form2 pass that value to constructor then set it to
form2.frm2Textbox.text like :
Form2 form = new Form2(valueOfForm1);
In form2 constructor:
public class Form2 : Form
{
public Form2(string text)
{
frm2Textbox.Text = text;
}
}
You can pass any type of value like above example.Still confused? See it:
Passing Data Between two forms (Windows forms using c#) [
^]