James,
DateTimePicker is one of those dodgy controls (e.g you cannnot set
background colour for the text) and I am not surprised if it behaves badly.
But, I tested that on my machine (UK setting) with "MMMM d, yyyy" in format
property and setting the format to custom and it did show "November 12,
2003". Are you trying to use "Value" property in code? I am using VB.NET
2003 and that might cause the difference (very unlikely though)
Michael's approach is very professional and polished (he is MVP after all
;-)):
System.Threading.Thread.CurrentThread.CurrentUICul ture = New
System.Globalization.CultureInfo("en-CA")
You might as well use that.
Cheers
Ali
"JamesBV" <No****@telus.net> wrote in message
news:0u********************************@4ax.com...
Why don't you use Formatting?
1. String.Format("mmDDyyyy",myDate)
2. myDate.ToString("mmDDyyyy")
Hmmmm... okay. But will this allow me to change the DateTimePicker
display? I'm not sure if it will.
I changed my Region Date to USA standard.
I then tried putting MMMM d, yyyy in the Properties "Custom Format"
line... and then changed the "Format" line to 'Custom'. But the display still
showed USA format.
Other than that... the other stuff (labels, textboxes) work fine.
Idea?
Thanks.
James