The things is that I use a funtion (below the EM) and it gives the following EM
EM = Conversion from type 'String()' to type 'String' is not valid.
------
Private Function GetDefaultFolderLocation(ByVal sk As String) As String
Dim key As Microsoft.Win32.RegistryKey
key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey(" Software\NetGearLogReder\Default")
Dim name As String = CType(key.GetValue(sk), String)
' Return the key value to the programe
GetDefaultFolderLocation = name
End Function
"Mattias Sjögren" wrote:
Sorry I forgot to mention LocalMachine>software is in the registry!
So you want to read a REG_MULTI_SZ value from the Registry? Then you
use the Microosft.Win32.RegistryKey class. Cast the return value from
the GetValue method to a String().
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.