Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeSpanUpDown exeption on invalid keyboard input #26

Open
chrizzz86 opened this issue Apr 16, 2021 · 0 comments
Open

TimeSpanUpDown exeption on invalid keyboard input #26

chrizzz86 opened this issue Apr 16, 2021 · 0 comments

Comments

@chrizzz86
Copy link

Hi,
I faced an issue when I enter invalid TimeSpan values on TimeSpanUpDown control.
E.g. exceptions occur when I remove one of the separator colon (":") or if I enter values greater than allowed (ArgumentOutOfRangeException).
As there is no catch block to handle such error cases the exception occurs also on my application as unhandled exception.

I attached the changed TimeSpanUpDown.cs file where I simply added a try catch block.

TimeSpanUpDown.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant