first create one class like this
public class Class1
{
public string color { get; set; }
}
Create two forms (form1 and form2)
write this code in form1 button click event
private void button1_Click(object sender, EventArgs e)
{
Class1 c = new Class1();
c.color = "red";
textBox1.BackColor = System.Drawing.Color.Red;
Form2 f2 = new Form2(c);
f2.Show();
}
Modify the constructor of form2
public Form2(Class1 c) // constructor
{
InitializeComponent();
if (c.color == "red")
textBox1.BackColor = System.Drawing.Color.Red;
}