|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
howto pull info. from registry?the installer of my vb.net app creates a registry key based on user
preferences. how do i pull data from it? 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 -- Show quoteHide quoteProgramming 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" <TFBFQF4***@gmail.com> schreef in bericht news:1140183322.581990.166450@g44g2000cwa.googlegroups.com... > the installer of my vb.net app creates a registry key based on user > preferences. how do i pull data from it? > "igul222" <TFBFQF4***@gmail.com> schrieb: Check out the 'Microsoft.Win32.Registry' class (no additional references > the installer of my vb.net app creates a registry key based on user > preferences. how do i pull data from it? required). -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
running application using vb.net
Replace Selected Text printing problem with dotmatrix printer using vb.net Treeview drives me crazy! Data Types and structure Memory Usage? Different Approaches to Saving settings: Which is better? How to load hierarchical Db data in treeview?? Windows XP Style Deleting configurations Activating Windows Forms |
|||||||||||||||||||||||