Registry Keys

G

Guest

Is there a way I can delete one part of a multi string registry key, with out
deleting the whole key?

Currently I have the following code witch deletes the whole key.

Private Sub DeleteAlertFilenamesEntrys(ByVal sk As String, ByVal f As
String)
Dim key As Microsoft.Win32.RegistryKey
Dim a As String

a = "Software\NetGearLogReder\Default" + "\" + f
key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(a, True)
key.DeleteValue(sk)

key.Close()

MsgBox("Hello")
End Sub
 
C

CT

Your code works fine here. I created the following key,
Software\NetGearLogReder\Default\fKey, and created a multistring value in
that key named fMultiStringValue. I set sk to fMultiStringValue and f to
fKey, no problems.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top