I'm using .NET 3.5 with VS 2005 C#.
I created a simple application where when I select the time zone from a combo box, it displays the current time of that time zone. To do this I simply use the GetSystemTimeZones() method of TimeZoneInfo class, and then populate the combo box with the TimeZoneInfo.DisplayName of each time zone. Then later I do some more operations to display the time which is pretty much irrelevant in this context. My program works just fine, and here is the code where I get the time zones and how I populate the combo.
//Get the time zones
ReadOnlyCollection<TimeZoneInfo> zones = TimeZoneInfo.GetSystemTimeZones();
//Add the display name of each time zone to the combo box
foreach (TimeZoneInfo zone in zones)
{
comboBox1.Items.Add(zone.DisplayName);
}
However, I have one problem.
My OS (Windows Vista Business) as well as VisualStudio .NET is Japanese. Therefore, TimeZoneInfo.GetSystemTimeZones() returns time zones with the DisplayName property in Japanese language. However I need this to be in English.
How can that be done?