Windows Time Zone Dropdown in C#

Viewed 377
1 Answers

I would do this as per the Microsoft Docs.

ReadOnlyCollection<TimeZoneInfo> tzCollection;
tzCollection = TimeZoneInfo.GetSystemTimeZones();

Then you could set a combobox DataSource equal to that collection like so

comboBox.DataSource = tzCollection;
Related