|
tech
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VS 2008 (VB Express) Registry.GetValue questionHi 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 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 > > 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 >> >> |
|||||||||||||||||||||||