Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Read Registry Data Value

I want to read registry all Name and Data value of

HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN

and write on a list box.

Thanks
0
AngeloReyes
Asked:
AngeloReyes
  • 2
2 Solutions
 
JackOfPHCommented:
list1.additem (getsetting("HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN")
0
 
Cem TürkSenior Software EngineerCommented:
0
 
JackOfPHCommented:
On Error Resume Next
frmMain.list1.Clear
RegNext = 1
Read = ReadRegistry(HKEY_CURRENT_USER, "SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\", 1)
frmMain.list1.AddItem Read
Do
RegNext = RegNext + 1
MisReg = ReadRegistry(HKEY_CURRENT_USER, "SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\", RegNext)
DoEvents
If MisReg <> "Not Found" Then
frmMain.list1.AddItem MisReg
End If
Loop Until MisReg = "Not Found"
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now