private void button2_Click(object sender, EventArgs e) { if (textBox1.Text.Trim() != string.Empty && textBox2.Text.Trim() != string.Empty && label5.Text.Trim() != string.Empty) { _10 t = new _10(); t.ShowDialog(); } else { MessageBox.Show("please fill all the entries"); } }