private void button21_Click(object sender, EventArgs e) { _4X4form form1 = new _4X4form(); form1.Show(); this.Hide(); }
private void button2_Click_1(object sender, EventArgs e) { try { counts = Convert.ToInt32(textBox1.Text); } catch { label2.Text = "enter valid number"; } if (counts > 0) { _4X4form form1 = new _4X4form(); form1.Show(); this.Hide(); } else { label2.Text = "enter valid number"; } }