This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

On devices running Windows Mobile 6.5, you can launch the GPS Settings dialog by clicking its icon in the Settingswindow. On some Windows Mobile Version 5.0-based devices, depending on the manufacturer, this option is hidden. If you are going to create a managed GPS application that targets Windows Mobile Version 5.0-based devices, your application should be able to reveal the icon by modifying the registry. You can add this functionality to a Settings form for your application or add it to a custom installation dll. Your application's documentation should also mention this issue.

A Code Example of Showing the Icon

To display the GPS Settings icon, if it is hidden, an application should check the registry value HKLM\ControlPanel\GPS Settings for the value “Hide” or “Redirect” and deletes these values if they are present. The following example shows how to do this in managed code.

Copy Code
private void showGPSSettingsItem_Click(object sender, EventArgs e)
  Microsoft.Win32.RegistryKey key;
  key = Microsoft.Win32.Registry.LocalMachine.
  OpenSubKey("ControlPanel\\GPS Settings", true);

  if (key.GetValue("Hide") != null)
  if (key.GetValue("Redirect") != null)