125
UltraTimeSpanEditor Format of Hours still assumes days
posted

I'm using version 17.1.20171.2043

If I add an UltraTimeSpanEditor to a form and set it's Format to Hours I would expect to be able to type "1" and tab out of the editor and have it result in "1 hr".

Instead it defaults to "1 day".

I have been unable to find any override or cancel event handler that I can tap into to change this decision making.

Is there any way to have the control honor the Format property for the default unit?

Parents
No Data
Reply
  • 1115
    Verified Answer
    Offline posted

    Hello Gary,

    Thank you for posting in our forum.

    I suggest you handle BeforeExitEditMode event and convert the day value to the hour value if the current editor text only holds numbers.
    Please take a look at the attached sample and let me know if this works for you.

    5707.WindowsFormsApplication1.zip

    Thank you,
    Mihoko Kamiishi

Children