Win CE 5.0 Gets All Supported Time Zones and Set to Current Time Zone Upon Selection in C#

  • Thread starter Thread starter sheeeng
  • Start date Start date
S

sheeeng

Hi all,

Thanks for all the information as posted in the thread WinCE 4.1 and
Setting / Getting TimeZone in C# http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=170988&SiteID=1)
and TIME_ZONE_INFORMATION (http://msdn2.microsoft.com/en-us/library/
ms725481.aspx).

I manage to get the current time zone.

However, how do I display all supported time zones as we usually see
on the control panel?

How can I collect all the time zones and display it on a combo box and
set it to the current time zone when selected?

Thanks in advance.
 
All "supported" time zones? If you want to get the list that the Control
Panel in CE4.x uses, you'd want to get the list of zones from the registry.
If you're using OpenNETCF's Smart Device Framework, there should be a class
in there, something like TimeZoneCollection, which will allow you to get a
list of timezones at a given offset from GMT, or a list of all known time
zones. That's the easy way, since it's already written.

Paul T.
 
Back
Top