SlideShare uma empresa 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();         }

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Mais 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

Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
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
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 

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(); }