This is the code am created and executed but one problem if the user did not give anything in textbox that time also it will show you are successfully registered how to give if text box is empty the button shows pls type text box
if ((textBox1.Text == "") && (textBox2.Text == "") && (textBox3.Text == "") && (textBox4.Text == ""))
{
MessageBox.Show("You are successfully registered", "success", MessageBoxButtons.OK, MessageBoxIcon.Information);
this.Hide();
Form2 frm2 = new Form2();
frm2.Show();
}
else
if((textBox1.Text.Trim()==string.Empty) && (textBox2.Text.Trim()==string.Empty)&&(textBox3.Text.Trim()==string.Empty)&&(textBox4.Text.Trim()==string.Empty))
{
MessageBox.Show("You are not successfully registered", "Invalid input", MessageBoxButtons.OK, MessageBoxIcon.Error);
this.Show();
}