Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Showing the GPS Settings Icon

Windows Mobile 6.5
4/19/2010

On devices running Windows Mobile 6.5, you can launch the GPS Settings dialog by clicking its icon in the Settings window. 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.

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.

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)
    key.DeleteValue("Hide");
  if (key.GetValue("Redirect") != null)
    key.DeleteValue("Redirect");
}

Community Additions

Show:
© 2015 Microsoft