ahorcado
TRANSCRIPT
![Page 1: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/1.jpg)
SEGUNDO PERIODO
![Page 2: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/2.jpg)
AHORCADO
• Primero vamos al menú inicio
![Page 3: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/3.jpg)
Luego todo los programas
![Page 4: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/4.jpg)
Luego Microsoft visual Studio 6.0
![Page 5: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/5.jpg)
Y a continuación le damos clic en visual Basic y se abrir el programa
![Page 6: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/6.jpg)
Y le damos en EXE estándar y abrir
![Page 7: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/7.jpg)
Y empezamos primero tenemos que escoger los text box
![Page 8: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/8.jpg)
Al hacer esto tenemos que tener en Cuentacuentos text box
hay que hacer en la nuestra tuvimos
que hacer 8 labels
![Page 9: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/9.jpg)
Luego hacemos un dibujo para esto utilizamos los shapes que se
encuentra en la barra de componentes con el cual haremos
la cabeza del muñeco
![Page 10: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/10.jpg)
Luego haremos el cuerpo del muñeco con los line que se
encuentra en la barra de componentes
![Page 11: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/11.jpg)
Luego hacemos unos command
![Page 12: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/12.jpg)
Luego de haber hecho los command los nombramos
![Page 13: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/13.jpg)
Ahora tenemos el command anterior cuyo código Será el
siguientePrivate 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íaElse Adodc1.Recordset.MovePrevious If Adodc1.Recordset.BOF Then Adodc1.Recordset.MoveFirst End IfEnd SubEl del command siguiente cuyo codigo esSelect Case No.Text Case 1 If R.Text = clave1.Text Then Adodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If Else L1.Visible = TrueAdodc1.Recordset.MoveNext If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast End If End If
![Page 14: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/14.jpg)
Case 2 If R.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 IfCase 3 If R.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
![Page 15: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/15.jpg)
Case 4 If R.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 R.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
![Page 16: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/16.jpg)
Case 6 If R.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 R.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
![Page 17: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/17.jpg)
Case 8 If R.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 R.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
![Page 18: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/18.jpg)
Case 10 If R.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 R.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
![Page 19: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/19.jpg)
Case 12 If R.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 R.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
![Page 20: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/20.jpg)
Case 14 If R.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 R.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 End If
![Page 21: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/21.jpg)
Case 16 If R.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 R.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
![Page 22: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/22.jpg)
Case 18 If R.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 R.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
![Page 23: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/23.jpg)
Case 20 If R.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 IfEnd SelectEnd sub.
![Page 24: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/24.jpg)
El codigo anterior funciona solo funciona con un componente cuyo
nombre es Microsoft ADO data control 6.0 (OLEDB) este
componente se encuentre en la barra de componentes.
![Page 25: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/25.jpg)
Pero hasta este momento todavía no funciona. Lo que haremos es abrir una conexión con una base de datos la cual hicimos anterior mente. Para esto le damos clic
derecho en el componente Microsoft ADO data control 6.0
Y luego en propiedades
![Page 26: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/26.jpg)
Al hacer esto se despliega una venta y le damos en la opción usar
cadena de conexión y luego generar
![Page 27: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/27.jpg)
Y se desplegara otra ventana en donde nos pide seleccionar un proveedor en esta caso utilizamer
el Microsoft jet 4.0
![Page 28: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/28.jpg)
Luego en siguiente y nos lleva a la pestaña conexión hay seleccionamos la ubicación de la
base de datos
![Page 29: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/29.jpg)
Y luego de darle aceptar volvemos a la ventana pagina de propiedades y vamos a la pestaña
origen de registro y desplegamos la opción que dice tipo de comando y le damos en table
![Page 30: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/30.jpg)
Luego desplegamos la opción tabla o nombre de procedimiento
almacenado el nombre de la tabla
![Page 31: Ahorcado](https://reader033.vdocuments.pub/reader033/viewer/2022042816/559ada7a1a28aba1548b4705/html5/thumbnails/31.jpg)
Luego seleccionamos el muñeco y le damos en propiedades y buscamos la
opción visible y le ponemos false