|
-
Mar 15th, 2006, 11:40 PM
#1
Thread Starter
Lively Member
[RESOLVED] Check if registry key exists.
Hi, after many googles I cant figure out how to check if a regitry key exists. And if it soes exists, get its value.
Just so there is no confusion, I have attached a SS. im not sure if "key" is the correct term for the think that i want to find.
-
Mar 16th, 2006, 12:05 AM
#2
Re: Check if registry key exists.
That's a value, not a key. You would open the key and then try to get the value with an empty string as a name. If myRegistryKey.GetValue(string.Empty) returns null then no default value has been set.
-
Mar 16th, 2006, 11:03 AM
#3
Thread Starter
Lively Member
Re: Check if registry key exists.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|