SlideShare una empresa de Scribd logo
1 de 12
BIENVENIDA DE MI PROGRAMA
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.
EN ESTE CODIGO LE ESTAMOS DICIENDO QUE VA A ABRIR OTRA FORM private void pictureBox1_Click(object sender, EventArgs e)         {             Form8 ventana = new Form8();             ventana.Show();             this.Close();         }
TAMBIEN VAMOS A ABRIR OTRA FORM private void pictureBox7_Click(object sender, EventArgs e)         {             Form25 ventana = new Form25();             ventana.Show(); this.Close();         }
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();         }
private void pictureBox1_Click(object sender, EventArgs e)         {             Form7 ventana = new Form7();             ventana.Show();         } ABRE LA SIGUIENTE FORM.
CODIGO QUE VA DENTRO DE LA IMAGEN. NOS DICE QUE NOS VA ABRIR OTRA FORM Y EN SEGUIDA LES MUETRO LA FORM 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 private void pictureBox5_Click(object sender, EventArgs e)         {             Form18 ventana = new Form18();             ventana.Show();         }
CODIGO QUE VA DENTRO DE LA IMAGEN. NOS DICE QUE NOS VA ABRIR OTRA FORM Y EN SEGUIDA LES MUETRO LA FORM private void pictureBox9_Click(object sender, EventArgs e)         {             Form21 ventana = new Form21();             ventana.Show();             this.Hide(); }
EN ESTE VA EL CODIGO DE SALIDA DEL PANEL DE CONTRO Y SE REGRESA A LA BIEVENIDA private void pictureBox7_Click(object sender, EventArgs e)         {             Form1 ventana = new Form1();             ventana.Show();             this.Hide();         }

Más contenido relacionado

La actualidad más candente

Cross platform Objective-C Strategy
Cross platform Objective-C StrategyCross platform Objective-C Strategy
Cross platform Objective-C Strategy
Graham Lee
 
Assignement of programming & problem solving
Assignement of programming & problem solvingAssignement of programming & problem solving
Assignement of programming & problem solving
Syed Umair
 

La actualidad más candente (20)

C++ lecture 02
C++   lecture 02C++   lecture 02
C++ lecture 02
 
Part 11 same sequence in multi tables
Part 11 same sequence in multi tablesPart 11 same sequence in multi tables
Part 11 same sequence in multi tables
 
Vcs8
Vcs8Vcs8
Vcs8
 
MVVM e Caliburn Micro for Windows Phone applications
MVVM e Caliburn Micro for Windows Phone applicationsMVVM e Caliburn Micro for Windows Phone applications
MVVM e Caliburn Micro for Windows Phone applications
 
Juego
JuegoJuego
Juego
 
Burrowing through go! the book
Burrowing through go! the bookBurrowing through go! the book
Burrowing through go! the book
 
Ditec esoft C# project
Ditec esoft C# project Ditec esoft C# project
Ditec esoft C# project
 
Ditec esoft C# project
Ditec esoft C# projectDitec esoft C# project
Ditec esoft C# project
 
Cross platform Objective-C Strategy
Cross platform Objective-C StrategyCross platform Objective-C Strategy
Cross platform Objective-C Strategy
 
Single linked list
Single linked listSingle linked list
Single linked list
 
Circular linked list
Circular linked listCircular linked list
Circular linked list
 
Sockets
SocketsSockets
Sockets
 
C programming
C programmingC programming
C programming
 
How to send a mail from utl smtp or from back end
How to send a mail from utl smtp or from back endHow to send a mail from utl smtp or from back end
How to send a mail from utl smtp or from back end
 
Know your errors
Know your errorsKnow your errors
Know your errors
 
Database Management - Lecture 3 - SQL Aggregate Functions, Join
Database Management - Lecture 3 - SQL Aggregate Functions, JoinDatabase Management - Lecture 3 - SQL Aggregate Functions, Join
Database Management - Lecture 3 - SQL Aggregate Functions, Join
 
Assignement of programming & problem solving
Assignement of programming & problem solvingAssignement of programming & problem solving
Assignement of programming & problem solving
 
Double linked list
Double linked listDouble linked list
Double linked list
 
AskTom Office Hours about Database Migrations
AskTom Office Hours about Database MigrationsAskTom Office Hours about Database Migrations
AskTom Office Hours about Database Migrations
 
Golang dot-testing
Golang dot-testingGolang dot-testing
Golang dot-testing
 

Más de ilian patricia bocanegra alfaro (20)

Edi
EdiEdi
Edi
 
EDI
EDIEDI
EDI
 
Diseño de almacen de datos
Diseño de almacen de datos Diseño de almacen de datos
Diseño de almacen de datos
 
Diseño de almacen de datos
Diseño de almacen de datosDiseño de almacen de datos
Diseño de almacen de datos
 
Diseño de almacen de datos
Diseño de almacen de datosDiseño de almacen de datos
Diseño de almacen de datos
 
Sgbdoo
SgbdooSgbdoo
Sgbdoo
 
ODMG
ODMGODMG
ODMG
 
Diseño orientado a flujo de datos
Diseño orientado a flujo de datosDiseño orientado a flujo de datos
Diseño orientado a flujo de datos
 
F:\diseño orientado a flujo de datos
F:\diseño orientado a flujo de datosF:\diseño orientado a flujo de datos
F:\diseño orientado a flujo de datos
 
Acceder
AccederAcceder
Acceder
 
Acceder
AccederAcceder
Acceder
 
Modificar
ModificarModificar
Modificar
 
Añadir
AñadirAñadir
Añadir
 
Añadir
AñadirAñadir
Añadir
 
GEOMETRIC COMPUTER PROGRAMA DE BD
GEOMETRIC COMPUTER PROGRAMA DE BDGEOMETRIC COMPUTER PROGRAMA DE BD
GEOMETRIC COMPUTER PROGRAMA DE BD
 
I:\pantallas
I:\pantallasI:\pantallas
I:\pantallas
 
Pantallas
PantallasPantallas
Pantallas
 
Pantallas
PantallasPantallas
Pantallas
 
Procesamientos Almacenados
Procesamientos AlmacenadosProcesamientos Almacenados
Procesamientos Almacenados
 
Disparadores
DisparadoresDisparadores
Disparadores
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

Bienvenida

  • 1. BIENVENIDA DE MI PROGRAMA
  • 2.
  • 3. 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.
  • 4. EN ESTE CODIGO LE ESTAMOS DICIENDO QUE VA A ABRIR OTRA FORM private void pictureBox1_Click(object sender, EventArgs e) { Form8 ventana = new Form8(); ventana.Show(); this.Close(); }
  • 5. TAMBIEN VAMOS A ABRIR OTRA FORM private void pictureBox7_Click(object sender, EventArgs e) { Form25 ventana = new Form25(); ventana.Show(); this.Close(); }
  • 6. 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(); }
  • 7.
  • 8. private void pictureBox1_Click(object sender, EventArgs e) { Form7 ventana = new Form7(); ventana.Show(); } ABRE LA SIGUIENTE FORM.
  • 9. CODIGO QUE VA DENTRO DE LA IMAGEN. NOS DICE QUE NOS VA ABRIR OTRA FORM Y EN SEGUIDA LES MUETRO LA FORM private void pictureBox3_Click(object sender, EventArgs e) { Form15 ventana = new Form15(); ventana.Show(); }
  • 10. 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(); }
  • 11. CODIGO QUE VA DENTRO DE LA IMAGEN. NOS DICE QUE NOS VA ABRIR OTRA FORM Y EN SEGUIDA LES MUETRO LA FORM private void pictureBox9_Click(object sender, EventArgs e) { Form21 ventana = new Form21(); ventana.Show(); this.Hide(); }
  • 12. EN ESTE VA EL CODIGO DE SALIDA DEL PANEL DE CONTRO Y SE REGRESA A LA BIEVENIDA private void pictureBox7_Click(object sender, EventArgs e) { Form1 ventana = new Form1(); ventana.Show(); this.Hide(); }