Hi Admins
I'm using Last version of the amazing controls Telerik :-)
Have a problem with MaskedEditBox Control.
use this control in Date format. and set the using property to this:
1.
txtdatein.MaskType = MaskType.DateTime;
2.
txtdatein.Mask =
"yyyy/MM/dd"
;
3.
txtdatein.Culture =
new
CultureInfo(
"fa-ir"
);
it's ok and work correct. but only in my system that i'm working with VS2017. (Windows 10 pro)
and when test the project another system,(windows 7 & windows 10) the control culture changed to en-us.
meanwhile, in application startup, use the below code for change the thread culture:
1.
CultureInfo c =
new
CultureInfo(
"fa-Ir"
);
2.
//var info = c.DateTimeFormat;
3.
Thread.CurrentThread.CurrentCulture = c;
4.
Thread.CurrentThread.CurrentUICulture = c;
5.
CultureInfo.DefaultThreadCurrentCulture = c;
// Test with and without this line
Please Tell me how to fix this problem.