Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to list values from a reg key into a listbox?

Like the title says, I'm trying to list all the key values of a regkey into a listbox...any ideas on how to do this?
[121 byte] By [jobartley515] at [2007-11-11 6:49:06]
# 1 Re: How to list values from a reg key into a listbox?
Well, I assume you know how to add items to a ListBox (if not, look up the AddItem method), so the real question is, "How do I enumerate the values of a registry key?" and, as usual, Google provides the answer: http://www.google.com/search?q=vb+registry+key+enumerate+values
Phil Weber at 2007-11-11 17:27:58 >
# 2 Re: How to list values from a reg key into a listbox?
I do is

Private Sub GetOptionsSetting()
Dim SS&
On Error Resume Next
For SS = 1 To 5
che(SS).Value = GetSetting(App.EXEName, "Settings\Options\", "Che" & SS & " :", 0)
Next SS
End Sub
Private Sub SaveOptionsSetting()
Dim SS&
On Error Resume Next
For SS = 1 To 5
SaveSetting App.EXEName, "Settings\Options\", "Che" & SS & " :", che(SS).Value 'Check
Next SS
End Sub


for Checkbox's

for List
List1.List(Row) = GetSetting......

or

List1.AddItem = GetSetting......
Log_in at 2007-11-11 17:28:58 >