Home All Groups Group Topic Archive Search About

VS 2008 (VB Express) Registry.GetValue question

Author
27 Nov 2007 1:05 AM
Matt Pollicove
Hi there.

I'm trying to read from:
HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemStart\.Current

to get the value in: (Default)

using: strCurrentSound =
My.Computer.Registry.GetValue("HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemStart\",
".Current", tmp)

But I can't get a value and I know there's a filename stored there.

Can anyone tell me where I'm going wrong?

Thanks,
Matt

Author
27 Nov 2007 2:36 PM
Siva M
To get the default value specify an empty string for the 2nd param.

Show quote
"Matt Pollicove" wrote:

> Hi there.
>
> I'm trying to read from:
> HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemStart\.Current
>
> to get the value in: (Default)
>
> using: strCurrentSound =
> My.Computer.Registry.GetValue("HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemStart\",
> ".Current", tmp)
>
> But I can't get a value and I know there's a filename stored there.
>
> Can anyone tell me where I'm going wrong?
>
> Thanks,
> Matt
>
>
Author
27 Nov 2007 4:08 PM
Matt Pollicove
I'll try this out, thanks!!!

Matt

Show quote
"Siva M" <shiva***@online.excite.com> wrote in message
news:2D5A08C6-7855-4B8C-B829-42DC7F3D8F61@microsoft.com...
> To get the default value specify an empty string for the 2nd param.
>
> "Matt Pollicove" wrote:
>
>> Hi there.
>>
>> I'm trying to read from:
>> HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemStart\.Current
>>
>> to get the value in: (Default)
>>
>> using: strCurrentSound =
>> My.Computer.Registry.GetValue("HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemStart\",
>> ".Current", tmp)
>>
>> But I can't get a value and I know there's a filename stored there.
>>
>> Can anyone tell me where I'm going wrong?
>>
>> Thanks,
>> Matt
>>
>>

AddThis Social Bookmark Button