Section A.5. Accessing Registry Settings


A.5. Accessing Registry Settings

The Access Registry Settings button will query the registry on the user's computer and retrieve the path to the Windows CE Application Manager.


Note: You must have ActiveSync installed on your computer to access the Windows CE Application Manager.

The result will display in a message box:

 '===================================================     ' Access Registry Settings     '===================================================     Private Sub btnRegistrySettings_Click( _        ByVal sender As System.Object, _        ByVal e As System.EventArgs) _        Handles btnRegistrySettings.Click         '---Need to add "Imports Microsoft.Win32" to the top of the file         '---Get the path to the Windows CE App Manager         ' from the registry---         Dim key As RegistryKey = _            Registry.LocalMachine.OpenSubKey( _            "SOFTWARE\Microsoft\Windows\CurrentVersion"&_            "\App Paths\CEAPPMGR.EXE")         If key Is Nothing Then             MsgBox("Windows CE App Manager not found.")         Else             MsgBox("Path of Windows CE App Manager: "&_             key.GetValue(String.Empty, String.Empty))         End If     End Sub 




Use ClickOnce to Deploy Windows Applications2006
Use ClickOnce to Deploy Windows Applications2006
ISBN: N/A
EAN: N/A
Year: 2005
Pages: 38

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net