View Single Post
Join Date: Mar 2008
Posts: 44
Reputation: smelf1 is an unknown quantity at this point 
Solved Threads: 0
smelf1 smelf1 is offline Offline
Light Poster

Re: vb.net 08 Reading data from multiple reg keys

 
0
  #7
Jan 7th, 2009
I found something similar in c#

  1. ( static void GetInstalled()
  2. {
  3. string uninstallKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall";
  4. using (RegistryKey rk = Registry.LocalMachine.OpenSubKey(uninstallKey))
  5. {
  6. foreach (string skName in rk.GetSubKeyNames())
  7. {
  8. using (RegistryKey sk = rk.OpenSubKey(skName))
  9. {
  10. Console.WriteLine(sk.GetValue("DisplayName"));
  11. }
  12. }
  13. }
  14. })

can this be changed into .net?
Reply With Quote