void insertar()
        {
            //fecha del sistema del windows
            try
            {

                DateTime Hoy = DateTime.Today;
                string datos = Hoy.ToString("dd/MM/yyyy");

                lbl_fecha.Text = datos;

            }

            catch (Exception)
            {

            }

            string fechita;

            fechita = txt_fechaa.Text + txt_fecham.Text + txt_fechad.Text;
            try
            {
                SqlCommand registro = new SqlCommand("INSERT INTO Miembros(usuario,clave,nombre,fecha,nacimiento,direccion,genero,telefono,tipo,estado)VALUES('"
                    + this.txt_usuario.Text + "','" + this.txt_clave.Text
                    + "','" + this.txt_nombre.Text
                    + "','" + this.lbl_fecha.Text
                    + "','" + Convert.ToString(fechita) // otro vendito logro!!
                    //   + "','" + Convert.ToDateTime(this.mascarafecha.Text)
                    + "','" + this.txt_direccion.Text
                    + "','" + this.cbx_genero.SelectedItem
                    + "','" + this.txt_telefono.Text
                    + "','Admin','activo')", cn);

               SqlCommand empresa = new SqlCommand("INSERT INTO Empresa(emp_id,razonsocial,nombre,direccion1,direccion2,rnc,pais,telefono,fax)VALUES(1,'" + this.txt_razonsocial.Text
                    + "','" + this.txt_nombre.Text
                    + "','" + this.txt_direccion1.Text
                    + "','" + this.txt_direccion2.Text
                    + "','" + Convert.ToDouble(this.txt_rnc.Text)
                    + "','" + this.cbx_pais.SelectedItem
                    + "','" + this.txt_telefono.Text
                    + "','" + this.txt_fax.Text
                    + "')", cn);
                cn.Open();
                empresa.ExecuteNonQuery();
                registro.ExecuteNonQuery();
                cn.Close();

                MessageBox.Show("Instalacion Exitosa!");
                this.Hide();
                FrmLogin menu = new FrmLogin();
                menu.Show();
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                cn.Close();
            }
        }
 private void btn_usuario_Click(object sender, EventArgs e)
 {
     FrmLogin abrir = new FrmLogin();
     abrir.Show();
     this.Close();
 }