Posted 17 February 2019, 8:53 am EST
Hello,
I am testing C1Shedule on Vs 2017 WinForm but I don’t know how change it to 24 hours format instead of 12 as get automactly.
Could you help me pls ? or send me a example pls ?
Forums Home / ComponentOne / WinForms Edition
Posted by: serjaime on 17 February 2019, 8:53 am EST
Posted 17 February 2019, 8:53 am EST
Hello,
I am testing C1Shedule on Vs 2017 WinForm but I don’t know how change it to 24 hours format instead of 12 as get automactly.
Could you help me pls ? or send me a example pls ?
Posted 17 February 2019, 4:47 pm EST
Hello,
You can change the time format either from design-time using the C1Schedule Smart Designer (https://help.grapecity.com/componentone/NetHelp/c1schedule/webframe.html#c1schedulesmartdesig.html) as shown in the attached image, or from code:
c1Schedule1.Theme["TimeRuler"].Format = "H mm"; // for Day/Week views
c1Schedule1.Theme["TimeLineRuler"].Format = "H mm"; // for TimeLine view
Let me know if you need further assistance.
Best Regards,
Esha
Posted 17 February 2019, 6:25 pm EST
Morning Esha,
Thanks for quickly reply. I tested by code but it does not work, it’s easy line to include but at less on Visual Studio - Vb.Net does not work. Could you send me a single example project to check it pls.
Best Regards
Posted 17 February 2019, 6:36 pm EST
Hello Esha,
Finally I solved it effectively was that the lines of codes with the exception that in VB.Net instead of must be changed by ().
c1Schedule1.Theme(“TimeLineRuler”).Format = “HH mm”
c1Schedule1.Theme(“TimeRuler”).Format = “HH mm”
Thanks for your help