SlideShare una empresa de Scribd logo
2
Lo más leído
3
Lo más leído
AHORCADO EN VISUAL
Es muy fácil, utilizaremos las siguientes herramientas: TextBox : Estos son cuadros blancos rectangulares  Label: estos son cuadros similares a los TextBox Line: son líneas rectas Shape: son líneas rectangulares o ovaladas Command: es una herramienta en visual que es cuadra o rectangular Los TextBox los utilizamos para las respuestas del ahorcado, para responder y el numero de preguntas Los Label es para el contexto de las preguntas Las Line para formar el muñeco del ahorcado  Los Shape lo utilizamos para hacer el tallo que sostiene al ahorcado y también para hacer su cabeza En cada TextBox les ponemos un nombre ej: Text 1 esto son para las respuestas, Rta para responder , clave1 para la clave, No para el numero de preguntas  En los Label  Label1 para las preguntas En cada línea formando el muñeco ahorcado con sus mano, brazos etc, le ponemos un nombre ej: L 1 Los Shape, para la cabeza L5, para el tallo  L2 PROGRAMACION EN VISUAL COMO HACER EL JUEGO DE AHORCADO
Este es para devolver la pregunta Private Sub Command5_Click() If Adodc1.Recordset.EOF And Adodc1.Recordset.BOF Then MsgBox "No hay registros en la base de datos", vbExclamation, "Base de datos vacía" Else Adodc1.Recordset.MovePrevious If Adodc1.Recordset.BOF Then Adodc1.Recordset.MoveFirst End If End Sub CODIFICACION
ESTE CODIGO ES PARA CONTINUAR LA PREGUNTAS Private Sub Command3_Click() Select Case No.Text Case 1 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L1.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 2 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L2.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 3 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L3.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If
Case 4 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L4.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 5 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L5.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 6 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L6.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If
Case 7 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L7.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 8 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L8.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 9 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L9.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If
Case 10 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L10.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 11 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line11.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 12 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line12.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If
Case 13 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line13.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 14 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast MsgBox ("EL JUEGO HA TERMINADO") End End If Else Line14.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast MsgBox ("EL JUEGO HA TERMINADO") End End If End If Case 15 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If MsgBox ("EL JUEGO HA TERMINADO") End Else Line9.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast MsgBox ("EL JUEGO HA TERMINADO") End End If
Case 16 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line10.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 17 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line17.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 18 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line18.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If
Case 19 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line19.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 20 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line20.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If End Select End Sub
ESTE ES PARA FINALIZAR EL JUEGO Private Sub Command6_Click() End End Sub

Más contenido relacionado

PPTX
Segmentacion de memoria
PPTX
c++ introduccion
PPTX
Arquitectura clase-4
PPT
PPTX
Ahorcado
PPTX
Presentación Formared y cursos 2015
PPT
Crucigrama
ODT
Manual del Programador Juego Ahorcado Educativo
Segmentacion de memoria
c++ introduccion
Arquitectura clase-4
Ahorcado
Presentación Formared y cursos 2015
Crucigrama
Manual del Programador Juego Ahorcado Educativo

Destacado (20)

DOC
Programa despachadora de refrescos (c#)
DOCX
Ejercicios de excel con visual basic
PPTX
New Textures
PPTX
Pest Photo Presentation
PDF
Presentatie Social Media en Onderwijs, NHTV Breda 25 Augustus 2011
PDF
Connectedness Gets Personal - Adam Lavelle - iCrossing
PDF
Tracking Display Impressions in an Attribution Model
PDF
constellation energy Principles of Business Integrity
PPT
Great Life Intl Español
PPT
Ils Software presentation
PPS
EcoCity Lab
PPTX
Robust Web APIs with node.js and Express
PDF
Connectedness Gets Real - Adam Lavelle - iCrossing
PDF
LaMP: Rare Coastal Wetlands on Lake Erie
PPTX
OEC Webinar: Air Quality & Your Health (part 1) - Erica Fetty & Sarah VanderW...
PDF
Nyenrode #VCVmarcom presentatie over social media ROI
PDF
Teaching Open Source In The University
PDF
Thinking Outside The Box With BuddyPress
PPT
Risk Management and Hedge Funds
PPT
Mario Lemieux
Programa despachadora de refrescos (c#)
Ejercicios de excel con visual basic
New Textures
Pest Photo Presentation
Presentatie Social Media en Onderwijs, NHTV Breda 25 Augustus 2011
Connectedness Gets Personal - Adam Lavelle - iCrossing
Tracking Display Impressions in an Attribution Model
constellation energy Principles of Business Integrity
Great Life Intl Español
Ils Software presentation
EcoCity Lab
Robust Web APIs with node.js and Express
Connectedness Gets Real - Adam Lavelle - iCrossing
LaMP: Rare Coastal Wetlands on Lake Erie
OEC Webinar: Air Quality & Your Health (part 1) - Erica Fetty & Sarah VanderW...
Nyenrode #VCVmarcom presentatie over social media ROI
Teaching Open Source In The University
Thinking Outside The Box With BuddyPress
Risk Management and Hedge Funds
Mario Lemieux
Publicidad

Similar a Ahorcado En Visual Basic (20)

PPT
Ahorcado
PPT
Ahorcado
PDF
DOC
Crear El Proyecto Y El Primer Formulario Con Su CodificacióN
DOC
Crear El Proyecto Y El Primer Formulario Con Su CodificacióN
DOC
Macros en Excel parte VI
DOC
MACROS EN EXCEL Parte VI
PPTX
Funciones y sentencias
DOC
Ejercicios desarrollados de visual basic (según libro)
PDF
Entrega 8 arreglos - controles - gráficos
PDF
Elemento n3
PDF
Cristinagananparedes
PPTX
Arreglos, Procedimientos y Funciones
PDF
19257010052355706554687048494556 macros excel-vi
DOCX
Funciones propias de visual basic
PPTX
Examen melo
DOCX
Visual Basic 6.0 Parte 2/2
DOCX
Actividad 5 altasusuarios
PDF
Practicas Visual Basic 6.0
Ahorcado
Ahorcado
Crear El Proyecto Y El Primer Formulario Con Su CodificacióN
Crear El Proyecto Y El Primer Formulario Con Su CodificacióN
Macros en Excel parte VI
MACROS EN EXCEL Parte VI
Funciones y sentencias
Ejercicios desarrollados de visual basic (según libro)
Entrega 8 arreglos - controles - gráficos
Elemento n3
Cristinagananparedes
Arreglos, Procedimientos y Funciones
19257010052355706554687048494556 macros excel-vi
Funciones propias de visual basic
Examen melo
Visual Basic 6.0 Parte 2/2
Actividad 5 altasusuarios
Practicas Visual Basic 6.0
Publicidad

Último (20)

PDF
LIBRO 2-SALUD Y AMBIENTE-4TO CEBA avanzado.pdf
PDF
Iniciación Al Aprendizaje Basado En Proyectos ABP Ccesa007.pdf
DOCX
Programa_Sintetico_Fase_4.docx 3° Y 4°..
PDF
La Evaluacion Formativa en Nuevos Escenarios de Aprendizaje UGEL03 Ccesa007.pdf
DOCX
PLAN DE AREA DE CIENCIAS SOCIALES TODOS LOS GRUPOS
DOC
Manual de Convivencia 2025 actualizado a las normas vigentes
PDF
2.0 Introduccion a processing, y como obtenerlo
PDF
Tomo 1 de biologia gratis ultra plusenmas
PPTX
Doctrina 1 Soteriologuia y sus diferente
PDF
ACERTIJO Súper Círculo y la clave contra el Malvado Señor de las Formas. Por ...
PDF
MATERIAL DIDÁCTICO 2023 SELECCIÓN 1_REFORZAMIENTO 1° BIMESTRE.pdf
PPTX
MATEMATICAS GEOMETRICA USO TRANSPORTADOR
PDF
Gasista de unidades unifuncionales - pagina 23 en adelante.pdf
PDF
1. Intrdoduccion y criterios de seleccion de Farm 2024.pdf
PDF
informe tipos de Informatica perfiles profesionales _pdf
PDF
Integrando la Inteligencia Artificial Generativa (IAG) en el Aula
PDF
Atencion prenatal. Ginecologia y obsetricia
DOCX
Informe_practica pre Final.docxddadssasdddddddddddddddddddddddddddddddddddddddd
PDF
Unidad de Aprendizaje 5 de Educacion para el Trabajo EPT Ccesa007.pdf
PDF
Los hombres son de Marte - Las mujeres de Venus Ccesa007.pdf
LIBRO 2-SALUD Y AMBIENTE-4TO CEBA avanzado.pdf
Iniciación Al Aprendizaje Basado En Proyectos ABP Ccesa007.pdf
Programa_Sintetico_Fase_4.docx 3° Y 4°..
La Evaluacion Formativa en Nuevos Escenarios de Aprendizaje UGEL03 Ccesa007.pdf
PLAN DE AREA DE CIENCIAS SOCIALES TODOS LOS GRUPOS
Manual de Convivencia 2025 actualizado a las normas vigentes
2.0 Introduccion a processing, y como obtenerlo
Tomo 1 de biologia gratis ultra plusenmas
Doctrina 1 Soteriologuia y sus diferente
ACERTIJO Súper Círculo y la clave contra el Malvado Señor de las Formas. Por ...
MATERIAL DIDÁCTICO 2023 SELECCIÓN 1_REFORZAMIENTO 1° BIMESTRE.pdf
MATEMATICAS GEOMETRICA USO TRANSPORTADOR
Gasista de unidades unifuncionales - pagina 23 en adelante.pdf
1. Intrdoduccion y criterios de seleccion de Farm 2024.pdf
informe tipos de Informatica perfiles profesionales _pdf
Integrando la Inteligencia Artificial Generativa (IAG) en el Aula
Atencion prenatal. Ginecologia y obsetricia
Informe_practica pre Final.docxddadssasdddddddddddddddddddddddddddddddddddddddd
Unidad de Aprendizaje 5 de Educacion para el Trabajo EPT Ccesa007.pdf
Los hombres son de Marte - Las mujeres de Venus Ccesa007.pdf

Ahorcado En Visual Basic

  • 2. Es muy fácil, utilizaremos las siguientes herramientas: TextBox : Estos son cuadros blancos rectangulares Label: estos son cuadros similares a los TextBox Line: son líneas rectas Shape: son líneas rectangulares o ovaladas Command: es una herramienta en visual que es cuadra o rectangular Los TextBox los utilizamos para las respuestas del ahorcado, para responder y el numero de preguntas Los Label es para el contexto de las preguntas Las Line para formar el muñeco del ahorcado Los Shape lo utilizamos para hacer el tallo que sostiene al ahorcado y también para hacer su cabeza En cada TextBox les ponemos un nombre ej: Text 1 esto son para las respuestas, Rta para responder , clave1 para la clave, No para el numero de preguntas En los Label Label1 para las preguntas En cada línea formando el muñeco ahorcado con sus mano, brazos etc, le ponemos un nombre ej: L 1 Los Shape, para la cabeza L5, para el tallo L2 PROGRAMACION EN VISUAL COMO HACER EL JUEGO DE AHORCADO
  • 3. Este es para devolver la pregunta Private Sub Command5_Click() If Adodc1.Recordset.EOF And Adodc1.Recordset.BOF Then MsgBox "No hay registros en la base de datos", vbExclamation, "Base de datos vacía" Else Adodc1.Recordset.MovePrevious If Adodc1.Recordset.BOF Then Adodc1.Recordset.MoveFirst End If End Sub CODIFICACION
  • 4. ESTE CODIGO ES PARA CONTINUAR LA PREGUNTAS Private Sub Command3_Click() Select Case No.Text Case 1 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L1.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 2 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L2.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 3 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L3.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If
  • 5. Case 4 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L4.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 5 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L5.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 6 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L6.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If
  • 6. Case 7 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L7.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 8 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L8.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 9 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L9.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If
  • 7. Case 10 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L10.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 11 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line11.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 12 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line12.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If
  • 8. Case 13 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line13.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 14 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast MsgBox ("EL JUEGO HA TERMINADO") End End If Else Line14.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast MsgBox ("EL JUEGO HA TERMINADO") End End If End If Case 15 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If MsgBox ("EL JUEGO HA TERMINADO") End Else Line9.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast MsgBox ("EL JUEGO HA TERMINADO") End End If
  • 9. Case 16 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line10.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 17 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line17.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 18 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line18.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If
  • 10. Case 19 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line19.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If Case 20 If Rta.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else Line20.Visible = True Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If End Select End Sub
  • 11. ESTE ES PARA FINALIZAR EL JUEGO Private Sub Command6_Click() End End Sub