private void button2_Click(object sender, EventArgs e) { Cclientes c = new Cclientes(); c.Show(); this.Hide(); }
private void button5_Click(object sender, EventArgs e) { sqlconn.Open(); Cclientes cli = new Cclientes(); sqlcomm = new SqlCommand(); DataTable dt = new DataTable(); sql = "insert into CLIENTE (" + "CL_NOMBRE," + "CL_CEDULA," + "CL_APELLIDO," + "CL_APELLIDO_MATERNO," + "CL_EMAIL," + "CL_TELEFONO," + "CL_EDAD," + "CL_USUARIO," + "CL_PASSWORD" + ") values (" + "'" + textBox1.Text + "'," + "'" + textBox9.Text + "'," + "'" + textBox2.Text + "'," + "'" + textBox3.Text + "'," + "'" + textBox10.Text + "'," + "'" + textBox11.Text + "'," + "'" + textBox4.Text + "'," + "'" + textBox5.Text + "'," + "'" + textBox6.Text + "'" + ")"; sqlcomm.Connection = sqlconn; sqlcomm.CommandText = sql; sqlcomm.CommandType = CommandType.Text; sqlcomm.ExecuteNonQuery(); sqlconn.Close(); sql = selec; sqlconn.Open(); sqlda = new SqlDataAdapter(sql, sqlconn); sqlda.Fill(dt); sqlconn.Close(); cli.dataGridView1.DataSource = dt; limpiar(); }
private void clientesToolStripMenuItem_Click(object sender, EventArgs e) { Cclientes cliente = new Cclientes(); cliente.Show(); }