Old Question about Thread.CurrentThread.CurrentCulture

I think it's an old question and asked before. But I can't found any reference. Sorry if you need to re-answer again.

Here is my problem:
Right now my system is using English (United States) regional setting which the datetime format is MM/dd/yyyy.
I want my application displayed in display in Indonesian format "dd/MM/yyyy" without changing user's regional setting.

So I did the below programmatically:

Thread.CurrentThread.CurrentCulture = =New CultureInfo("id-ID")

When I debug, I foundThread.CurrentThread.CurrentCulture is already "id-ID" like what I want. But my form which contained of datetimepicker, calendar n some other controls still behave like "en-US" format.

I thought is it need to do some setting in the datetimepicker's or calendar's property?

[1084 byte] By [aping] at [2007-12-16]
# 1
Change Format property of DateTimePicker control to Custom and CustomFormat property to dd/MM/yyyy
PankajBanga at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
Unfortunately, the DateTimePicker does not reflect culture settings, so you will need to set this manually.

Set the DateTimePicker.Format to DateTimePictureFormat.Custom and then do something like the following in the Load event of your form:


dateTimePicker1.CustomFormat = Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern;

DavidM.Kean at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
thanks man...
aping at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...