private void settingsToolStripMenuItem_Click(object sender, EventArgs e) { frmSettings fs = new frmSettings(); if (fs.ShowDialog() == DialogResult.OK) { resize = false; change = false; puzzlecount = fs.Count; CreateGrid(puzzlecount * puzzlecount); } }