问题
Is there a simple way to display Windows Time zone drop down in an application in C# so the user can change it?
Similar to this Timezone drop down
回答1:
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;
来源:https://stackoverflow.com/questions/63743833/windows-time-zone-dropdown-in-c-sharp