title: Change Button's Color in Another Form C#
body: <p>I have 2 forms named Form1 and Form2. </p>
  
  <p>Each forms there are 3 buttons with the same name: Button1, Button2, and Button3.</p>
  
  <p>What I want is when each color of Buttons in Form1 are changed, and then each color of Buttons in Form 2 are also changed. For example, Button 1 in Form 1 is green, so Button 1 in Form 1 is also green. </p>
  
  <p>How can I do this ? These are what I have done and it doesn't work</p>
  
  <p>Form1</p>
  
  <pre><code>Form2 form2 = new Form2();    
  
  private void Klik_Click(object sender, EventArgs e)
      {
        counter++;
        if(counter==1)
        {
          Button1.BackColor = Color.Red;
          Button2.BackColor = Color.Red;
          Button3.BackColor = Color.Red;
          form2.Button1.BackColor = Color.Red;
          form2.Button2.BackColor = Color.Red;
          form2.Button3.BackColor = Color.Red;
        }
        if (counter &gt; 1)
        {
          Button1.BackColor = Color.Green;
          Button2.BackColor = Color.Green;
          Button3.BackColor = Color.Green;
          form2.Button1.BackColor = Color.Green;
          form2.Button2.BackColor = Color.Green;
          form2.Button3.BackColor = Color.Green;
          counter = 0;
        }
      }
  
  private void StripMenu_Click(object sender, EventArgs e)
      {
          form2.Show();
      }
  </code></pre>