datetimepicker

E

Erald Kulk

L.S.

in my application I changed the current culture with the following
code:

CultureInfo newCulture = new CultureInfo("nl-nl");
newCulture.DateTimeFormat.DayNames = new string[]
{"Sunday","Monday", "Tuesday", "Wednesday", "Thursday", "Friday",
"Saturday"} ;
//newCulture.DateTimeFormat.AbbreviatedDayNames

Thread.CurrentThread.CurrentCulture = newCulture;
Thread.CurrentThread.CurrentUICulture = newCulture;

but my datetimepicker still displays the days of the week with the
settings of my computer (which are dutch). How can I change these
settings??
I cannot find an appropriate help on this.

Erald
 
D

Dan Cimpoiesu

Try setting these as the first instruction in the Main

Then Application.Run(new MainForm());


Hope this helps

Dan Cimpoiesu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top