[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.
http://img236.imageshack.us/img236/3504/key4cm.jpg
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.
Re: Check if registry key exists.