I igul222 Feb 17, 2006 #1 the installer of my vb.net app creates a registry key based on user preferences. how do i pull data from it?
the installer of my vb.net app creates a registry key based on user preferences. how do i pull data from it?
P Peter Proost Feb 17, 2006 #2 Hi, at the top of your class Imports Microsoft.Win32 'then Dim oRegKey As RegistryKey Dim oBaseKey As RegistryKey oBaseKey = Registry.CurrentUser oRegKey = oBaseKey.OpenSubKey("Software\YourProgram") If not oRegKey Is Nothing Then Dim val As Object = oRegKey.GetValue("ValueName") key.Close End If Hope this helps Greetz Peter
Hi, at the top of your class Imports Microsoft.Win32 'then Dim oRegKey As RegistryKey Dim oBaseKey As RegistryKey oBaseKey = Registry.CurrentUser oRegKey = oBaseKey.OpenSubKey("Software\YourProgram") If not oRegKey Is Nothing Then Dim val As Object = oRegKey.GetValue("ValueName") key.Close End If Hope this helps Greetz Peter
H Herfried K. Wagner [MVP] Feb 17, 2006 #3 igul222 said: the installer of my vb.net app creates a registry key based on user preferences. how do i pull data from it? Click to expand... Check out the 'Microsoft.Win32.Registry' class (no additional references required).
igul222 said: the installer of my vb.net app creates a registry key based on user preferences. how do i pull data from it? Click to expand... Check out the 'Microsoft.Win32.Registry' class (no additional references required).