I have a custom control with a property of type TimeSpan.
When I enter a value of 24:00:00 in the property pane I get an "Improper
property value" error.
How do I enter this value?
And how do I enter a value greater than 24 hours?
Thanks,
Jos
>I have a custom control with a property of type TimeSpan.
>
[quoted text clipped - 7 lines]
>
> Jos
The error is correct, as the maximum value of a 24 hour clock is 23:59:59.
One second beyond this value is 00:00:00.
Beyond this time, you would have to maintain a separate day counter.
If you want to a general purpose timer for any number of hours, then you
would have to implement your own property.
Jos - 26 Nov 2004 07:41 GMT
> >I have a custom control with a property of type TimeSpan.
> >
[quoted text clipped - 14 lines]
> If you want to a general purpose timer for any number of hours, then you
> would have to implement your own property.
It's strange that these values can't be entered, since
the TimeSpan object itself is not limited to 24 hours.
Jos
Jos Branders - 27 Nov 2004 12:48 GMT
>>> I have a custom control with a property of type TimeSpan.
>>>
[quoted text clipped - 19 lines]
>
> Jos
OK, I found it, it's a dot between the days and the hours:
1.00:00:00 is 24 hours
1.12:00:00 is 36 hours
3.00:00:00 is 3 days
etc.

Signature
Jos