Hi Sascha,
Thank you for your interest in Syncfusion Products.
Preventing the user to enter invalid time, can be done using MaskCustomValidate event of MaskedEditBox. The following code snippet illustrates this:
Private Sub maskedEditBox1_MaskCustomValidate(ByVal sender As Object, ByVal e As
Syncfusion.Windows.Forms.Tools.MaskCustomValidateArgs) Handles maskedEditBox1.MaskCustomValidate
currentText.Remove(0, Me.currentText.Length)
currentText.Append(Me.maskedEditBox1.Text)
If e.CurrentIndex =4 Then
currentText(e.CurrentIndex) = e.CurrentCharacter
If e.CurrentCharacter > "5"c Then
e.Handled = True
e.Accepted = False
End If
End If
End Sub
Please find the simple sample in the following link:
http://websamples.syncfusion.com/samples/Tools.Windows/F73067/main.htmPlease let me know if any concerns.
Regards,
Fathima