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

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 

Último (20)

WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
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
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 

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