Hi,
Please follow the below steps:
Create a static class
static class Temp
{
public static string textvalue;
}
get the text box value in form 1 and assign to the static variable of the static class
private void button1_Click(object sender, EventArgs e)
{
Temp.textvalue = textBox1.Text;
}
In the second form load get the static variable and assigned to the text box
private void Form2_Load(object sender, EventArgs e)
{
textBox1.Text = Temp.textvalue;
}
Hope this helps!
- S Francis
My Blog