The registry for my small app looks kinda like this
entry1 reg_sz value1
entry2 reg_sz value2
entry3 reg_sz value3
How would I delete one of this subkeys ?
So that this would be the result
entry1 reg_sz value1
entry3 reg_sz value3
The registry for my small app looks kinda like this
entry1 reg_sz value1
entry2 reg_sz value2
entry3 reg_sz value3
How would I delete one of this subkeys ?
So that this would be the result
entry1 reg_sz value1
entry3 reg_sz value3
In regedit you should be able to simply right-click on the key and select Delete. Or are you asking how to do it programatically?
If so...
'Delete Key declaration
Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long
Private Sub cmdDelete_Click()
DeleteSetting "key", "subkey"
End Sub
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.