Bonsoir the king
Ce programme écrit en vb 2010 pourrait peut-être convenir.
Public Class Accueil
Private Clr1 As Color = Color.FromArgb(255, 255, 0, 0)
Private Clr2 As Color = Color.FromArgb(255, 0, 255, 0)
Private Clr0 As New Color
Private Sub Accueil_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Clr0 = Lab.BackColor
End Sub
Private Sub bM_Click(sender As Object, e As EventArgs) Handles bM.Click
Lab.BackColor = Clr1
Tps.Start()
End Sub
Private Sub bA_Click(sender As Object, e As System.EventArgs) Handles bA.Click
Lab.BackColor = Clr0
Tps.Stop()
End Sub
Private Sub Tps_Tick(sender As Object, e As EventArgs) Handles Tps.Tick
With Lab
If .BackColor = Clr1 Then
.BackColor = Clr2
ElseIf .BackColor = Clr2 Then
.BackColor = Clr1
End If
End With
End Sub
End Class
Cordialement.