j'ai voulu rajouter un timer qui déclenche l'apparition d'un un autre label pendant 10 secondes si l'heure systeme = heure recuperer de la base access .Oui on peut.... mais seulement si tu nous montres ton code.....
pouvez vous m'aider
If Format(Now, "HH:mm") = CHUQMaskedTextBox8.Text Then
' au moment opportun on affiche le label pendant 2 secondes
Label9.Visible = True
Label9.Text = "c'est l'heure du ......" + Label4.Text
Label9.Refresh()
System.Threading.Thread.Sleep(20000)
Label9.Visible = False
End If
Public Class Form1
Dim t As Integer
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Timer1.Start()
Label1.Visible = False
End Sub
Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
If TextBox1.Text = Format(Now, "HH:mm") Then
Timer2.Start()
End If
End Sub
Private Sub Timer2_Tick(sender As Object, e As EventArgs) Handles Timer2.Tick
Label1.Visible = True
t = t + 1
Label1.Text = t
If t = 20 Then
Label1.Visible = False
t = 0
TextBox1.Clear()
Timer2.Stop()
End If
End Sub
End Class