Electronic Clock to display time in seconds
public Sub Timer_Timer()
Label.Text=Str(Now())
End
----------------------------------------------------
Color change every second of a text.
public Sub Button1_Click()
Timer1.Enabled=True
End
Public Sub Timer1_Timer()
Dim t1,t2,t3 As Integer
t1=Int(Rnd*255)
t2=Int(Rnd*155)
t3=Int(Rnd*55)
Label1.Foreground=Color.RGB(t1,t2,t3)
End
----------------------------------------------------
Button change Color
Public Sub Button1_Click()
assign3.Background=Color.Red
End
Public Sub Button2_Click()
assign3.Background=Color.Green
End
Public Sub Button3_Click()
assign3.Background=Color.Blue
End