Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2005

    Lightbulb Unanswered: how to output registery folder names and key inside it in to listbox?

    Hi all .

    I have a problem retrieve the usernames and Id stored in HKEY_CURRENT_USER\Software\xyz\123\

    usernames are not not stored as string, the usernames are stored as the folders name inside of the 123 directory. For example, the program has 3 usernames stored in the registry; cat, panda, lion. So these are the folders :


    inside each username folder there is a key called Id and I want to print the username foldernames and the value of ID key inside each usename folder into a listbox. I appreacite if an expert show me how to achive this task.Thanks

  2. #2
    Join Date
    Jun 2004
    Arizona, USA
    VB's built-in registry functions should get you started.

    They store the data in: HKEY_CURRENT_USER\Software\VB and VBA Program Settings\appname\section\key

    If you want more control (at the cost of potentially damaging the registry) you can declare the Windows API functions & use them.

    Or, there are scads of wrappers that have been written. Here's one:
    "Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
    "I have my standards. They may be low, but I have them!" - Bette Middler
    "It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts