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