title: C# Call a method from a different form class?
body: <p>Ok, so I have a method in one class and I'm trying to call it from another class.</p>
  
  <p>Form1:</p>
  
  <pre><code>    public void ChangeBack(Color clr)
      {
          this.BackColor = clr;
      }
  </code></pre>
  
  <p>Form2:</p>
  
  <pre><code>    public void ChangBackColor_Click(object sender, EventArgs e)
      {
          if (ColorDialog.ShowDialog() == DialogResult.OK)
          {
              Form1.ChangeBack(ColorDialog.Color);
          }
      }
  </code></pre>
  
  <p>But I need to make the ChangeBack method static to be able to call it. So:</p>
  
  <p>Form1:</p>
  
  <pre><code>    public static void ChangeBack(Color clr)
      {
          this.BackColor = clr;
      }
  </code></pre>
  
  <p>But then I can't use "this." as the void doesn't allow it because it's static. And I can't create a new form1 because it needs to run overall in two windows.</p>
  
  <p>Please help!C</p>