Persian RadDateTimePicker in C# winform?

≯℡__Kan透↙ 提交于 2019-12-23 19:03:27

问题


I like to use DateTimePicker in my winforms C# project but both C# and Telerik Control have Gregorian date.
Can anyone convert these control to Persian DateTimePicker? Is any way for my problem.
Please help me.


回答1:


I don't think there is any way in C# to set DataTimePicker to Persian. And Telerik also do not support such thing take a look here.

So I would suggest you to explore other options such as

  • Code project

  • Code Plex




回答2:


use the telerik radDateTimePicker and write this code , after InitializeComponent(), and Instead of "fa-IR" use your culture . enjoy :)

Application.CurrentCulture = new CultureInfo("fa-IR"); 
radDateTimePicker1.Format = DateTimePickerFormat.Custom; 
radDateTimePicker1.CustomFormat = Application.CurrentCulture.DateTimeFormat.ShortDatePattern;


来源:https://stackoverflow.com/questions/23797234/persian-raddatetimepicker-in-c-sharp-winform

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!