- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- End
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- If Not IsNumeric(TextBox2.Text) Then
- MsgBox("Heure incorrecte", vbCritical, "Erreur")
- End
- End If
- If Not IsNumeric(TextBox3.Text) Then
- MsgBox("Minutes incorrectes", vbCritical, "Erreur")
- End
- End If
- If TextBox3.Text > 60 Then
- MsgBox("Minutes incorrectes", vbCritical, "Erreur")
- End
- End If
- If TextBox2.Text > 23 Then
- MsgBox("Heure incorrecte", vbCritical, "Erreur")
- End
- End If
- If TextBox2.Text = "" Then
- MsgBox("Heure incorrecte", vbCritical, "Erreur")
- End
- End If
- If TextBox3.Text = "" Then
- MsgBox("Minutes incorrectes", vbCritical, "Erreur")
- End
- End If
- If TextBox2.Text < 23 Then
-
-
- If TextBox3.Text < 60 Then
-
-
- Me.Visible = False
- Dim heures
- heures = 0
- Do
- If My.Computer.Clock.LocalTime.Hour = TextBox2.Text Then
- heures = 1
- End If
- If My.Computer.Clock.LocalTime.Minute = TextBox3.Text Then
- If heures = 1 Then
- MsgBox(TextBox1.Text, vbExclamation, "Memo")
- heures = 0
- End
- End If
- End If
- Loop
- End If
- End If
- End Sub
-
- Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- TextBox2.MaxLength = 2
- TextBox3.MaxLength = 2
- End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
End
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Not IsNumeric(TextBox2.Text) Then
MsgBox("Heure incorrecte", vbCritical, "Erreur")
End
End If
If Not IsNumeric(TextBox3.Text) Then
MsgBox("Minutes incorrectes", vbCritical, "Erreur")
End
End If
If TextBox3.Text > 60 Then
MsgBox("Minutes incorrectes", vbCritical, "Erreur")
End
End If
If TextBox2.Text > 23 Then
MsgBox("Heure incorrecte", vbCritical, "Erreur")
End
End If
If TextBox2.Text = "" Then
MsgBox("Heure incorrecte", vbCritical, "Erreur")
End
End If
If TextBox3.Text = "" Then
MsgBox("Minutes incorrectes", vbCritical, "Erreur")
End
End If
If TextBox2.Text < 23 Then
If TextBox3.Text < 60 Then
Me.Visible = False
Dim heures
heures = 0
Do
If My.Computer.Clock.LocalTime.Hour = TextBox2.Text Then
heures = 1
End If
If My.Computer.Clock.LocalTime.Minute = TextBox3.Text Then
If heures = 1 Then
MsgBox(TextBox1.Text, vbExclamation, "Memo")
heures = 0
End
End If
End If
Loop
End If
End If
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox2.MaxLength = 2
TextBox3.MaxLength = 2
End Sub