Visual basic: Tutorial 4 - Change color again, this time with a timer!

Publicado el: 01 mayo 2008
en el canal de: Peter Richardson
6,502
13

Visual basic 2008 express edition.

In this tutorial you will learn how to change the color of the form with timers.



the code


Public Class Form1


Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

Timer2.Enabled = True
Timer5.Enabled = False
Me.BackColor = Color.Red

End Sub


Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Timer1.Enabled = False
Me.BackColor = Color.Black
Timer3.Enabled = True
End Sub

Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
Timer2.Enabled = False
Me.BackColor = Color.Blue
Timer4.Enabled = True
End Sub

Private Sub Timer4_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer4.Tick
Timer3.Enabled = False
Me.BackColor = Color.Green
Timer5.Enabled = True
End Sub

Private Sub Timer5_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer5.Tick
Timer4.Enabled = False
Timer1.Enabled = True
Me.BackColor = Color.Beige

End Sub
End Class


En esta página del sitio puede ver el video en línea Visual basic: Tutorial 4 - Change color again, this time with a timer! de Duración hora minuto segunda en buena calidad , que subió el usuario Peter Richardson 01 mayo 2008, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 6,502 veces y le gustó 13 a los espectadores. Disfruta viendo!