//*************************************************************************************************************** private void btnRegister_Click(object sender, EventArgs e) //Register { frmRegister RegisterForm = new frmRegister(); this.Hide(); RegisterForm.Show(); }
//************************************************************************************************************************************************* private void btnRegister_Click_1(object sender, EventArgs e) //register button { this.Hide(); //hides current form frmRegister RegisterForm = new frmRegister(); // Create a new instance of the Form class RegisterForm.Show(); // Shows the Registration form }