it's Ok... thanks thanks... I am going to try sleep... the temperature is so high in Madrid (during the day 41ºC....)
(your code with sentences in spanish!!!)
Dim Matcher As Matcher = Regex.Matcher("(\d\d)
\d\d)",txtHORA.Text)
Do While Matcher.Find
Dim hour As Int = Matcher.Group(1)
Dim minute As Int = Matcher.Group(2)
If hour < 0 Or hour > 23 Then
ToastMessageShow("HORA NO Válida, tiene que estar comprendida entre 0 y 23.",True)
txtHORA.Text=DateTime.Time(DateTime.Now)
Return
End If
If minute < 0 Or minute > 59 Then
txtHORA.Text=DateTime.Time(DateTime.Now)
ToastMessageShow("MINUTOS NO Válidos, tienen que estar comprendidos entre 0 y 59.",True)
Return
End If
Return
Loop
ToastMessageShow("Formato de hora inválido",True)