Bienvenida
-
Upload
ilian-patricia-bocanegra-alfaro -
Category
Technology
-
view
1.156 -
download
2
description
Transcript of Bienvenida
![Page 1: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/1.jpg)
BIENVENIDA DE MI PROGRAMA
![Page 2: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/2.jpg)
![Page 3: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/3.jpg)
private void pictureBox3_Click(object sender, EventArgs e) { con = new SqlConnection(); con.ConnectionString = vgloba.liga; try { con.Open(); //AQUI CUENTO LOS REGISTROS DE USUARIO string cadenasql = "SELECT Count (usuario) FROM USUARIOS"; SqlCommand comando = new SqlCommand(cadenasql, con); int contador = ((int)comando.ExecuteScalar()); con.Close();
//SI EL CONTADOR VALE CERO SE ABRIRA UNA VENTANA DE NUEVO REGISTRO if (contador == 0) { Form nuevo = new Form5(); nuevo.Show(); this.Hide(); } else { Form nuevo = new Form3(); nuevo.Show(); this.Hide(); }
} catch { MessageBox.Show("Error en la conexion"); } }
ESTE ES EL CODIGO QUE VA DENTRO DE ESTA IMAGEN.
![Page 4: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/4.jpg)
private void pictureBox1_Click(object sender, EventArgs e) { Form8 ventana = new Form8(); ventana.Show(); this.Close(); }
EN ESTE CODIGO LE ESTAMOS DICIENDO QUE VA A ABRIR OTRA FORM
![Page 5: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/5.jpg)
private void pictureBox7_Click(object sender, EventArgs e) { Form25 ventana = new Form25(); ventana.Show(); this.Close();
}
TAMBIEN VAMOS A ABRIR OTRA FORM
![Page 6: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/6.jpg)
ESTE ES EL BOTON PARA SALIR DE LA APLICACION Y SE PONE EL SIGUIENTE CODIGO DENTRO DE LA IMAGEN
private void pictureBox5_Click(object sender, EventArgs e) { this.Close(); }
![Page 7: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/7.jpg)
![Page 8: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/8.jpg)
private void pictureBox1_Click(object sender, EventArgs e) { Form7 ventana = new Form7(); ventana.Show(); }
ABRE LA SIGUIENTE FORM.
![Page 9: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/9.jpg)
private void pictureBox3_Click(object sender, EventArgs e) { Form15 ventana = new Form15(); ventana.Show(); }
CODIGO QUE VA DENTRO DE LA IMAGEN. NOS DICE QUE NOS VA ABRIR OTRA FORM Y EN SEGUIDA LES MUETRO LA FORM
![Page 10: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/10.jpg)
CODIGO QUE VA DENTRO DE LA IMAGEN. NOS DICE QUE NOS VA ABRIR OTRA FORM Y EN SEGUIDA LES MUETRO LA FORM
private void pictureBox5_Click(object sender, EventArgs e) { Form18 ventana = new Form18(); ventana.Show(); }
![Page 11: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/11.jpg)
private void pictureBox9_Click(object sender, EventArgs e) { Form21 ventana = new Form21(); ventana.Show(); this.Hide(); }
CODIGO QUE VA DENTRO DE LA IMAGEN. NOS DICE QUE NOS VA ABRIR OTRA FORM Y EN SEGUIDA LES MUETRO LA FORM
![Page 12: Bienvenida](https://reader035.fdocuments.us/reader035/viewer/2022070302/547bede4b4af9f05668b460d/html5/thumbnails/12.jpg)
private void pictureBox7_Click(object sender, EventArgs e) { Form1 ventana = new Form1(); ventana.Show(); this.Hide(); }
EN ESTE VA EL CODIGO DE SALIDA DEL PANEL DE CONTRO Y SE REGRESA A LA BIEVENIDA