I have 9 buttons in Form1.Designer.cs. And I want to use them in another class which is Puzzle.cs. What I've done is,
private int PUZZLESIZE = 3;
private int col, row;
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 } };
However, it doesn't work since the modifier in the designer.cs should be static. So I did that. But it cause errors for those buttons.
Any1 have ideas on how to refer these buttons in puzzle class??? Because our teacher said we have to modify them in model class.
Thanks!!!