6

How to populate the timezone in a drop down box?

Matt Johnson-Pint
244k75 gold badges469 silver badges622 bronze badges
asked Sep 16, 2009 at 5:08

1 Answer 1

11

Winforms example:

myComboBox.DisplayMember = "DisplayName";
myComboBox.DataSource = TimeZoneInfo.GetSystemTimeZones();
answered Sep 16, 2009 at 5:16
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.