Hi All,

Can someone please show me how to read all values in a subkey at one time.

I'm creating a Startup Monitor program.

It uses a timer that fires every 100 milliseconds

When the program starts up I need it to read in the current values of a subkey into a textbox.

Then the timer fires and continuously reads the values in the same subkey into a second text box

Then the remaining code compares the two textboxes contents.

If there's any difference a message will appear informing the user that something has been changed.


example:

I need to read in all of the values in the:

HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run

subkey


All the reg code I have now can do everything except what I'm needing.

Here's what I have so far.



Private Sub Check1_Click()

Text1.Text = getstring(HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", _
"Site Surfer")

Timer1.Enabled = True
End Sub

This only reads in the value data from the single value Site Surfer

So is there a way to read in all values in a subkey into a textbox at one time?

Thanks,

techsent