Results 1 to 4 of 4

Thread: Reading all values in a registry subkey

Threaded View

  1. #2
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    With the attached module and some code like this you can get there. I have used list box instead of a text box but I assume you can switch it to fit your needs.
    VB Code:
    1. Private Sub Form_Load()
    2. Dim RegArray() As String
    3. Dim intLoop As Integer
    4.  
    5.  RegArray = EnumKeyValues(HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run")
    6.  
    7.  For intLoop = 0 To UBound(RegArray)
    8.      List1.AddItem RegArray(intLoop)
    9.  Next intLoop
    10.  
    11. End Sub
    Attached Files Attached Files

Posting Permissions

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



Click Here to Expand Forum to Full Width