Display Registry Value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Rainmanal
    Forum Member
    • Jul 2007
    • 6

    Display Registry Value

    Hello to all AMS gurus. I am in need of some assistance.

    I am looking for a way to display registry key values within an input box, I know that input boxes are for input but I was hoping I would be able to display there as well. Any suggestions???

    I know that I am getting the registry value because I have tested the Registry.GetValue in a message box.

    Here is what I have so far:

    --- "username" is the Object Name --

    username = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "DefaultUserName", true);

    Input.SetVisible("username", true);


    Thanks in advance.
  • Autoplayit07
    Forum Member
    • Nov 2007
    • 15

    #2
    Code:
    username = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "DefaultUserName", true);
    Input.SetText("Input1", username.."");


    or like this stores the results in result and displays it in an input object called "username"
    Code:
    result = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", "DefaultUserName", true);
    Input.SetText("username", result.."");
    Last edited by Autoplayit07; 12-12-2007, 11:39 AM.

    Comment

    • Rainmanal
      Forum Member
      • Jul 2007
      • 6

      #3
      Display Registry Value

      Thanks Autoplayit07, works great! :yes

      Comment

      Working...
      X