title: How to access buttons in other class from Form1.cs
body: <p>I have 9 buttons in <code>Form1.Designer.cs</code> and I want to access them in another class, <code>Puzzle.cs</code> because later on I need to modify button changes in model class. The code below is what I attempted.</p>
  
  <pre><code>private Button[,] buttons = new Button[3, 3]
  { { Form1.button1, Form1.button2, Form1.button3 }, 
    { Form1.button4, Form1.button5, Form1.button6 }, 
    { Form1.button7, Form1.button8, Form1.button9 } };
  </code></pre>
  
  <p>It fails as the modifier for buttons is not static. I changed them into static type but this causes errors for buttons.
  Can anyone give some advice?</p>