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