Change MonthCalendar Culture

1

Is it possible to change the date format of the MonthCalendar object of a WinForms application?

It happens that the culture selected on a client's station is Polish and this is causing an error in handling application dates.

I tried to use some alternatives like:

Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");

But I was not successful, the calendar retains the default date format (set in the OS Regional Settings).

    
asked by anonymous 16.06.2016 / 23:23

1 answer

1

As far as I know this component does not have this capability (for some internal fault). Either the user changes his configuration (the component recognizes the user's standard informed by the operating system), or the code needs to use another component. One that I usually recommend is available in the Code Project , I do not know if it is good or caters to you.

    
16.06.2016 / 23:40