Crucigrama En Visual Basic

6,092 views

Published on

congratulations

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
6,092
On SlideShare
0
From Embeds
0
Number of Embeds
41
Actions
Shares
0
Downloads
84
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Crucigrama En Visual Basic

  1. 1. CRUCIGRAMA EN VISUAL BASIC
  2. 2. <ul><li>En Visual Basic podemos hacer toda clase de juegos y programas etc. </li></ul><ul><li>Hacer un crucigrama para nuestro MEC “ingles básico“ es muy fácil. </li></ul><ul><li>en visual utilizaremos en el cuadro de herramientas los </li></ul><ul><li>Checkbox :Estos son los cuadros pequeños blancos indicadores, que nos sirven para subrayar las palabras que vas a hacer en el crucigrama. </li></ul><ul><li>Label : Estos nos sirven para escribir cualquier palabra o numero en visual. </li></ul><ul><li>Image : Esta herramienta nos sirve para subir imágenes, en el crucigrama la utilizamos para saber si, las tiene bien o mal la respuesta, te saldrá un cara feliz o triste </li></ul><ul><li>Los checkbox lo utilizamos para hacer los cuadros en que vas a llenar el crucigrama </li></ul><ul><li>Los label para titulo, palabras y números </li></ul><ul><li>Los image para imágenes subidas al crucigrama </li></ul><ul><li>En cada checkbox le pones un nombre ej: text 1 para responder y Check1 para llenar el crucigrama </li></ul><ul><li>Los label le ponemos cualquier nombre porque no influye en la codificación </li></ul><ul><li>Los image les ponemos a cada un nombre diferente como image1 porque esto influye en la codificación. Estas son son subidas por medio de la codificación LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul>PROGRAMACION DE VISUAL COMO HACER UN CRUCIGRAMA
  3. 3. <ul><li>Private Sub Check1_Click() </li></ul><ul><li>If Text1.Text = &quot;O&quot; And Text2.Text = &quot;N&quot; And Text3.Text = &quot;E&quot; Then </li></ul><ul><li>Image2.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image2.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul><ul><li>Private Sub Check10_Click() </li></ul><ul><li>If Text36.Text = &quot;F&quot; And Text39.Text = &quot;O&quot; And Text40.Text = &quot;U&quot; And Text41.Text = &quot;R&quot; Then </li></ul><ul><li>Image10.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image10.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul>CODIFICACION
  4. 4. <ul><li>Private Sub Check11_Click() </li></ul><ul><li>If Text42.Text = &quot;O&quot; And Text43.Text = &quot;N&quot; And Text44.Text = &quot;E&quot; And Text45.Text = &quot;H&quot; And Text46.Text = &quot;U&quot; And Text47.Text = &quot;E&quot; And Text41.Text = &quot;R&quot; And Text48.Text = &quot;E&quot; And Text49.Text = &quot;D&quot; Then </li></ul><ul><li>Image11.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image11.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul><ul><li>Private Sub Check12_Click() </li></ul><ul><li>If Text43.Text = &quot;N&quot; And Text50.Text = &quot;I&quot; And Text51.Text = &quot;N&quot; And Text52.Text = &quot;E&quot; And Text53.Text = &quot;T&quot; And Text54.Text = &quot;Y&quot; And Text55.Text = &quot;N&quot; And Text56.Text = &quot;I&quot; And Text57.Text = &quot;N&quot; And Text58.Text = &quot;E&quot; Then </li></ul><ul><li>Image12.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image12.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul>
  5. 5. <ul><li>Private Sub Check13_Click() </li></ul><ul><li>If Text53.Text = &quot;T&quot; And Text59.Text = &quot;H&quot; And Text60.Text = &quot;I&quot; And Text61.Text = &quot;R&quot; And Text62.Text = &quot;T&quot; And Text63.Text = &quot;Y&quot; And Text64.Text = &quot;O&quot; And Text65.Text = &quot;N&quot; And Text66.Text = &quot;E&quot; Then </li></ul><ul><li>Image13.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image13.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul><ul><li>Private Sub Check14_Click() </li></ul><ul><li>If Text82.Text = &quot;S&quot; And Text77.Text = &quot;E&quot; And Text78.Text = &quot;V&quot; And Text75.Text = &quot;E&quot; And Text79.Text = &quot;N&quot; And Text80.Text = &quot;T&quot; And Text81.Text = &quot;Y&quot; Then </li></ul><ul><li>Imag14.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image14.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul>
  6. 6. <ul><li>Private Sub Check15_Click() </li></ul><ul><li>If Text58.Text = &quot;I&quot; And Text67.Text = &quot;E&quot; And Text68.Text = &quot;G&quot; And Text69.Text = &quot;H&quot; And Text70.Text = &quot;T&quot; And Text71.Text = &quot;Y&quot; And Text72.Text = &quot;S&quot; And Text73.Text = &quot;E&quot; And Text74.Text = &quot;V&quot; And Text75.Text = &quot;E&quot; And Text76.Text = &quot;N&quot; Then </li></ul><ul><li>Imag15.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image15.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul><ul><li>Private Sub Check2_Click() </li></ul><ul><li>If Text4.Text = &quot;S&quot; And Text3.Text = &quot;E&quot; And Text5.Text = &quot;V&quot; And Text6.Text = &quot;E&quot; And Text7.Text = &quot;N&quot; Then </li></ul><ul><li>Image6.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image6.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul>
  7. 7. <ul><li>Private Sub Check3_Click() </li></ul><ul><li>If Text6.Text = &quot;E&quot; And Text8.Text = &quot;I&quot; And Text9.Text = &quot;G&quot; And Text10.Text = &quot;H&quot; And Text11.Text = &quot;T&quot; Then </li></ul><ul><li>Image3.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image3.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul><ul><li>Private Sub Check4_Click() </li></ul><ul><li>If Text11.Text = &quot;T&quot; And Text12.Text = &quot;W&quot; And Text13.Text = &quot;E&quot; And Text14.Text = &quot;L&quot; And Text15.Text = &quot;V&quot; And Text16.Text = &quot;E&quot; Then </li></ul><ul><li>Image7.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image7.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul>
  8. 8. <ul><li>Private Sub Check5_Click() </li></ul><ul><li>If Text17.Text = &quot;T&quot; And Text16.Text = &quot;E&quot; And Text18.Text = &quot;N&quot; Then </li></ul><ul><li>Image4.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image4.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul><ul><li>Private Sub Check6_Click() </li></ul><ul><li>If Text18.Text = &quot;N&quot; And Text19.Text = &quot;I&quot; And Text20.Text = &quot;N&quot; And Text21.Text = &quot;E&quot; And Text22.Text = &quot;T&quot; And Text23.Text = &quot;Y&quot; Then </li></ul><ul><li>Image8.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image8.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul>
  9. 9. <ul><li>Private Sub Check7_Click() </li></ul><ul><li>If Text22.Text = &quot;T&quot; And Text24.Text = &quot;H&quot; And Text25.Text = &quot;R&quot; And Text26.Text = &quot;E&quot; And Text27.Text = &quot;E&quot; Then </li></ul><ul><li>Image5.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image5.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul><ul><li>Private Sub Check8_Click() </li></ul><ul><li>If Text28.Text = &quot;F&quot; And Text29.Text = &quot;O&quot; And Text29.Text = &quot;U&quot; And Text25.Text = &quot;R&quot; And Text30.Text = &quot;T&quot; And Text31.Text = &quot;Y&quot; And Text32.Text = &quot;S&quot; And Text33.Text = &quot;I&quot; And Text34.Text = &quot;X&quot; Then </li></ul><ul><li>Image1.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image1.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul>
  10. 10. <ul><li>Private Sub Check9_Click() </li></ul><ul><li>If Text35.Text = &quot;F&quot; And Text36.Text = &quot;I&quot; And Text37.Text = &quot;V&quot; And Text27.Text = &quot;E&quot; Then </li></ul><ul><li>Image9.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE05.ICO&quot;) </li></ul><ul><li>Else </li></ul><ul><li>Image9.Picture = LoadPicture(&quot;C:Archivos de programaMicrosoft Visual StudioCommonGraphicsIconsMiscFACE04.ICO&quot;) </li></ul><ul><li>End If </li></ul><ul><li>End Sub </li></ul>

×