PresentacióN3

Post on 25-May-2015

270 views 0 download

Transcript of PresentacióN3

Primero vamos al menú inicio

Luego todo los programas

Luego Microsoft visual Studio 6.0

Y a continuación le damos clic en visual Basic y se abrir el programa

Y le damos en EXE estándar y abrir

Ahora este programa se maneja en su inmensa mayoría con image y

labels

Luego llamamos las imágenes al los imges por medio de la

propiedad picture

Ahora para nuestro progama necesitamos 16 images y 8 labels

Luego de darle clic se desplegara una ventana donde legira la

imagen a cargar

ahora intoducimos el codigo fuente que seria el siguientePrivate Sub Image1_DragDrop(Source As Control, X As Single, Y As Single)If Source = Image9 ThenImage1.Picture = Image9.PictureImage9.Visible = FalseLabel1.Caption = "¡Correcto!"BeepElseLabel1.Caption = "¡Incorrecto!"End IfCall finEnd SubPrivate Sub Image2_DragDrop(Source As Control, X As Single, Y As Single)If Source = Image15 ThenImage2.Picture = Image15.PictureImage15.Visible = FalseLabel6.Caption = "¡Correcto!"BeepElseLabel6.Caption = "¡Incorrecto!"End IfCall finEnd Sub

Private Sub Image3_DragDrop(Source As Control, X As Single, Y As Single)If Source = Image11.Visible = False ThenImage3.Picture = Image11.PictureImage11.Visible = FalseLabel9.Caption = "¡Correcto!"BeepElseLabel9.Caption = "¡Incorrecto!"End IfCall finEnd SubPrivate Sub Image4_DragDrop(Source As Control, X As Single, Y As Single)If Source = Image10 And Image12.Visible = False ThenImage4.Picture = Image10.PictureImage10.Visible = FalseLabel7.Caption = "¡Correcto!"BeepElseLabel7.Caption = "¡Incorrecto!"End IfCall finEnd Sub

Private Sub Image5_DragDrop(Source As Control, X As Single, Y As Single)If Source = Image14 ThenImage5.Picture = Image14.PictureImage14.Visible = FalseLabel3.Caption = "¡Correcto!"BeepElseLabel3.Caption = "¡Incorrecto!"End IfCall finEnd SubPrivate Sub Image6_DragDrop(Source As Control, X As Single, Y As Single)If Source = Image12 ThenImage6.Picture = Image12.PictureImage12.Visible = FalseLabel8.Caption = "¡Correcto!"BeepElseLabel8.Caption = "¡Incorrecto!"End IfCall finEnd Sub

Private Sub Image7_DragDrop(Source As Control, X As Single, Y As Single)If Source = Image16 ThenImage7.Picture = Image16.PictureImage16.Visible = FalseImage7.ZOrder 1Image8.ZOrder 0Label5.Caption = "¡Correcto!"BeepElseLabel5.Caption = "¡Incorrecto!"End IfCall finEnd SubPrivate Sub Image8_DragDrop(Source As Control, X As Single, Y As Single)If Source = Image13.Visible = False ThenImage8.Picture = Image13.PictureImage13.Visible = FalseLabel4.Caption = "¡Correcto!"BeepElseLabel4.Caption = "¡Incorrecto!"End IfCall finEnd Sub

• Private Sub fin()

• If Image9.Visible = False And Image10.Visible = False And Image11.Visible = False And Image12.Visible = False And Image13.Visible = False And Image14.Visible = False And Image15.Visible = False And Image16.Visible = False Then

• Beep

• Label1.Caption = "¡Ganaste!"

• End If

• End Sub