473,406 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Registry Keys

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
--
Cheers
Ithaqua
Nov 21 '05 #1
1 918
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.

--
Carsten Thomsen
Communities - http://community.integratedsolutions.dk

"Ithaqua" <It*****@discussions.microsoft.com> wrote in message
news:8E**********************************@microsof t.com...
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
--
Cheers
Ithaqua

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: vbMark | last post by:
Hello, In regards to the Registry... Can someone give me an example of how to list an unknown number of subkeys under a key, and put the key names in one column of a listbox, and the key...
21
by: Kevin Swanson | last post by:
I'm attempting some remote registry manipulation via C#. I've written a test app to simply grab a specified key from a specified hive on a specified machine. The call to OpenSubKey is throwing...
2
by: LCD | last post by:
Here is what I want to do: Presently in my registry I have: (Default) = "C:\Program Files\myApp" and this value is scattered all over registry in several keys and subkeys. I wouldlike to...
4
by: Kevin L | last post by:
I store some application settings in the registry under HKEY_LOCAL_MACHINE\Software\MyApplication I want to allow full access to this key and subkeys. Currently, I manually change the...
3
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. Is there a way to create a registry key, but orphan it from the program that created it? Reason: Create a key, but not associate it with the...
9
by: Newbie Coder | last post by:
Hello Newsgroup Readers I would like to know how to go & do the following: I have a certain registry key that has sub values Example: Key1 http://www.microsoft.com Key2 ...
0
by: Gary | last post by:
I'm having trouble entering Additional Registry Keys into my Package Solution that will deploy the Access 2007 runtime. (Client machine is running XP with Office 2007 Standard.) The Package...
11
by: Unknown Hero | last post by:
Tim Golden wrote: The first link which points to the Python documentation for the _winreg module I already checked, even before coming here. I am wondering how I should do the loop I need (go...
12
by: =?Utf-8?B?YXVsZGg=?= | last post by:
i current have a way to read both local and remote machines registry keys and create a textual view (.txt output). i now looking for ways to do export of local and remote mahcine registry keys...
3
by: =?Utf-8?B?WVhR?= | last post by:
I want to export some keys to a reg file using "regedit /e", how to export more keys to one file once but no only a key? thank you.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.