Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Trabajo de ept lissethe toro

2,354 views

Published on

  • Be the first to comment

Trabajo de ept lissethe toro

  1. 1. Proyecto 1<br />
  2. 2. Private Sub Command1_Click()<br />Form1.Hide<br />Form2.Show<br />End Sub<br />Private Sub Command2_Click()<br />Form1.Hide<br />Form3.Show<br />End Sub<br />Private Sub Command3_Click()<br />Form1.Hide<br />Form4.Show<br />End Sub<br />Private Sub Command4_Click()<br />End Sub<br />Private Sub Label1_Click()<br />End Sub<br />
  3. 3.
  4. 4. Private Sub Command1_Click()<br />Form2.Hide<br />Form1.Show<br />End Sub<br />Private Sub Command2_Click()<br />Form2.Hide<br />Form3.Show<br />End Sub<br />Private Sub Command3_Click()<br />Form2.Hide<br />Form4.Show<br />End Sub<br />
  5. 5.
  6. 6. Private Sub Command1_Click()<br />Form3.Hide<br />Form1.Show<br />End Sub<br />Private Sub Command2_Click()<br />Form3.Hide<br />Form2.Show<br />End Sub<br />Private Sub Command3_Click()<br />Form3.Hide<br />Form4.Show<br />End Sub<br />
  7. 7.
  8. 8. Private Sub Command1_Click()<br />Form4.Hide<br />Form1.Show<br />End Sub<br />Private Sub Command2_Click()<br />Form4.Hide<br />Form2.Show<br />End Sub<br />Private Sub Command3_Click()<br />Form4.Hide<br />Form3.Show<br />End Sub<br />Private Sub Command4_Click()<br />End Sub<br />
  9. 9. Proyecto 2<br />
  10. 10. Private Sub Label1_Click()<br />End Sub<br />Private Sub List1_Click()<br />Select Case List1.ListIndex<br />Case 0:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderasargentina.jpg ")<br />Case 1:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderasbolivia.jpg")<br />Case 2:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderasbrasil.jpg ")<br />Case 3:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderaschile.jpg ")<br />Case 4:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderascolombia.jpg ")<br />Case 5:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderasecuador.jpg ")<br />Case 6:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderasperu.jpg ")<br />Case 7:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderasuruguay.jpg ")<br />Case 8:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderasvenezuela.jpg ")<br />Case 9:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderasguyana.jpg ")<br />Case 10:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderasparaguay.jpg ")<br />Case 11:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderassurinam.jpg ")<br />Case 12:<br />Image1.Picture = LoadPicture(Path + "D:4 BBanderasguayana.jpg ")<br />EndSelect<br />End Sub<br />
  11. 11. Proyecto 3<br />
  12. 12. Private Sub Combo1_Change()<br />Text1.Text = Combo1.Text<br />End Sub<br />Private Sub Combo1_Click()<br />If Combo1.ListIndex <> -1 Then<br />If Combo1.Text <> "Ninguno" Then<br />Text1.Text = Combo1.List(Combo1.ListIndex)<br />Else<br />Text1.Text = ""<br />EndIf<br />EndIf<br />End Sub<br />Private Sub Command1_Click()<br />Dim nuevo As String<br />nuevo = InputBox("Ingrese un nuevo elemento", "Nuevo elemento")<br />IfLen(Trim(nuevo)) > 0 Then<br />Combo1.AddItem nuevo<br />EndIf<br />End Sub<br />Private Sub Command2_Click()<br />If Combo1.ListIndex <> -1 Then<br />Combo1.RemoveItem Combo1.ListIndex<br />Text1.Text = ""<br />EndIf<br />End Sub<br />Private Sub Command3_Click()<br />Combo1.Clear<br />End Sub<br />Private Sub Command4_Click()<br />End<br />End Sub<br />
  13. 13. Proyecto 4<br />
  14. 14. Private Sub Command1_Click()<br />Dim clave As String<br />pituficodigo = "pipiripipirinay"<br />If Text1.Text = pituficodigoThen<br />MsgBox ("BienvenidO al sistema")<br />Form2.Show<br />Form1.Hide<br />Else<br />MsgBox ("Error,Estabas cerca!!!!,VUELVE A INTENTARLO")<br />Text1.Text = ""<br />Text1.SetFocus<br />EndIf<br />End Sub<br />Private Sub Command2_Click()<br />End<br />End Sub<br />Private Sub Form_Load()<br />Form1.Show<br />Text1.SetFocus<br />End Sub<br />
  15. 15.
  16. 16. Private Sub Command1_Click()<br />Dimdias As Integer, costo As Integer, cable As Integer, telefono As Integer, bar As Integer, hospedaje As Integer, servicio As Integer, total As Integer, igv As Integer, netos As Integer<br />dias = Val(Text2.Text)<br />If Option1.Value = True Then costo = 50<br />If Option2.Value = True Then costo = 70<br />hospedaje = costo * dias<br />Text3.Text = Str(hospedaje)<br />If Check1.Value = vbCheckedThen cable = 20<br />If Check2.Value = vbCheckedThentelefono = 20<br />If Check3.Value = vbCheckedThen bar = 20<br />servicio = cable + telefono + bar<br />Text4.Text = Str(servicio)<br />total = hospedaje + servicio<br />Text5.Text = Str(total)<br />igv = 0.18 * total<br />Text6.Text = Str(igv)<br />neto = total + igv<br />Text7.Text = Str(neto)<br />End Sub<br />Private Sub Command2_Click()<br />Text1.Text = ""<br />Text2.Text = ""<br />Text3.Text = ""<br />Text4.Text = ""<br />Text5.Text = ""<br />Text6.Text = ""<br />Text7.Text = ""<br />Text1.SetFocus<br />End Sub<br />Private Sub Command3_Click()<br />Form3.Show<br />End Sub<br />Private Sub Command4_Click()<br />Dim res As Integer<br />res = MsgBox("desea salir del sistema?", 4 + 32 + 256, "salir")<br />If res = 6 Then<br />End<br />Else<br />Cancel = True<br />EndIf<br />End Sub<br />
  17. 17.
  18. 18. Private Sub Command1_Click()<br />Form2.Show<br />Form3.Hide<br />End Sub<br />

×