PROYECTO No 2

5

Click here to load reader

Transcript of PROYECTO No 2

Page 1: PROYECTO No 2

Proyecto de Visual Basic N°2

Alumna expositora: Milenka Uceda

Page 2: PROYECTO No 2

Form 1:

Page 3: PROYECTO No 2

Programando el Comando Timer 1Private Sub Timer1_Timer()

Timer1.Tag = Mid(Timer1.Tag, 2) + Left(Timer1.Tag, 1)

Form1.Caption = Timer1.Tag

End Sub

Programando el Comando Timer 2Private Sub Timer2_Timer()

Timer2.Tag = Mid(Timer2.Tag, 2) + Left(Timer2.Tag, 1)

Label1.Caption = Timer2.Tag

End Sub

Programando el Comando Timer 3

Private Sub Timer3_Timer()

Label2.Caption = Time

End Sub

Page 4: PROYECTO No 2

Programando el Comando Timer 4Private Sub Timer4_Timer()

Image1.Left = Image1.Left + 100

If (Image1.Left) > ScaleWidth Then Image1.Left = -500

End Sub

Programando el Comando Timer 5Private Sub Timer5_Timer()

Static x As Integer

If x = 2 Then x = -1

x = x + 1

Image2.Picture = Image3(x).Picture

End Sub

Page 5: PROYECTO No 2

Timer 1

Interval:200

Tag: Promoción 2012

Timer 2

Interval:200

Tag: La hora del sistema es

Timer 3

Interval:1000

Timer 3

Interval:50

Timer 3

Interval:300