Home All Groups Group Topic Archive Search About

Check for registry value

Author
2 May 2007 2:38 PM
Yet Another One
Hi everyone.

Sorry if this is the wrong group for this question, but since it
is .NET and VB, I thought someone may be able to help me here or point
me to the right group for this.

I am working on an application which needs to check if a certain VALUE
exists in a registry subkey. Is there an easy way to do this? So far,
my googles have come up empty on this, though they DO have a plethora
of information on checking if a KEY exists.

Any help on this is much appreciated.

Thank you,
Ryan

Author
2 May 2007 2:51 PM
rowe_newsgroups
On May 2, 10:38 am, Yet Another One <m***@here.com> wrote:
Show quoteHide quote
> Hi everyone.
>
> Sorry if this is the wrong group for this question, but since it
> is .NET and VB, I thought someone may be able to help me here or point
> me to the right group for this.
>
> I am working on an application which needs to check if a certain VALUE
> exists in a registry subkey. Is there an easy way to do this? So far,
> my googles have come up empty on this, though they DO have a plethora
> of information on checking if a KEY exists.
>
> Any help on this is much appreciated.
>
> Thank you,
> Ryan

Check out the function Microsoft.Win32.Registry.GetValue(keyName,
valueName, defaultValue)

Thanks,

Seth Rowe