G
Guest
I'm trying to read a registry key using VB.Net. I have posted the code below
that I'm using:
Dim DBConnect As RegistryKey = Registry.CurrentUser.OpenSubKey _
("Software\VB and VBA Program Settings\Mobile Control\SageQuestSetup")
Dim AlertDB As String = CType(DBConnect.GetValue("ConnectionString"),
String)
Public AlertConnectionString As String = AlertDB
I've vaildated the key path and I continue to get nothing assigned to
DBConnect.
What am I doing wrong here?
Thanks
Are there more variables to set?
that I'm using:
Dim DBConnect As RegistryKey = Registry.CurrentUser.OpenSubKey _
("Software\VB and VBA Program Settings\Mobile Control\SageQuestSetup")
Dim AlertDB As String = CType(DBConnect.GetValue("ConnectionString"),
String)
Public AlertConnectionString As String = AlertDB
I've vaildated the key path and I continue to get nothing assigned to
DBConnect.
What am I doing wrong here?
Thanks
Are there more variables to set?