I created a class inputbox that displays a inputbox that you can enter a number between 3 and 15. These are the dimesions for a tic tac toe game Im coding. For example, if the user enters a 7, you get a 7by7 game. I dont understand how to use the integer entered in my inputbox and set it to my button array.
Heres my code so far:
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void menuItem2_Click(object sender, System.EventArgs e)
{
//exits the program
this.Close();
}
private void Form1_Load(object sender, System.EventArgs e)
{
Button[] myArray=new Button[?];
}
I dont understand what to put to initialize the array. How do I tie my inputbox integer into the array I have created? Any help would be appreciated.