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().
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
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.