By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

howto pull info. from registry?

P: n/a
the installer of my vb.net app creates a registry key based on user
preferences. how do i pull data from it?

Feb 17 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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
--
Programming today is a race between software engineers striving to build
bigger and better idiot-proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning. (Rich Cook)

"igul222" <TF********@gmail.com> schreef in bericht
news:11**********************@g44g2000cwa.googlegr oups.com...
the installer of my vb.net app creates a registry key based on user
preferences. how do i pull data from it?

Feb 17 '06 #2

P: n/a
"igul222" <TF********@gmail.com> schrieb:
the installer of my vb.net app creates a registry key based on user
preferences. how do i pull data from it?


Check out the 'Microsoft.Win32.Registry' class (no additional references
required).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Feb 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.