VB.net 2008 Multiple Reg Keys

Associate
Joined
19 Dec 2005
Posts
641
Location
Perth, Western Australia
Hi,

In the reg key below there can be 50 different keys, how can i read through each one and get its display name and then show those display names in a lsitbox or combo box.

hkey_local_machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

I am using the code below to get the data in that single key but how do i get all data in display name in each of the multiple keys located in the key folder above

Code:
Imports System
Imports Microsoft.Win32
Public Class Form1    
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click        
Dim myCPUDescription As String = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0", "ProcessorNameString", "No CPU Found").ToString.Trim         
ComboBox1.Items.Add(myCPUDescription)
 
end sub
 
Back
Top Bottom