![]() |
| ||
| vb.net 08 Reading data from multiple reg keys Hi, In the reg key below there can be 50 different keys, how can i read through each one and get its display name and then show those display names in a lsitbox or combo box. hkey_local_machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall I am using the code below to get the data in that single key but how do i get all data in display name in each of the multiple keys located in the key folder above Imports System |
| ||
| Re: vb.net 08 Reading data from multiple reg keys Put your key in array Dim key As String(numberOfKeys)then loop and once you get value put it into ComboBox or any control you present data into Dim registrykeys(5) As StringYour array may be 2D to maintain the property of keys |
| ||
| Re: vb.net 08 Reading data from multiple reg keys Quote:
I am new to vb.net so bear with me : ). Now in that part of the reg i am looking the keys can be different depending on the installed programs. So i cannot just add the exact key to read. |
| ||
| Re: vb.net 08 Reading data from multiple reg keys Quote:
Dim Keys(numberOfKeys) As string |
| ||
| Re: vb.net 08 Reading data from multiple reg keys Give me the keys you want to get and it's properties in that way Exmaple Key: HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0 Property: ProcessorStringName Don't worry, just show me you want to learn |
| ||
| Re: vb.net 08 Reading data from multiple reg keys Quote:
The keys are all located in hkey_local_machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall its where the registry stores all the installed programs. I want to open each key it finds under hkey_local_machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and display what is in DisplayName in a combobox or text box. So on my pc i have a program called casecatalyst and its key is under hkey_local_machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\caseCatalyst4 and in here i am after DisplayName which is Case Catalyst. So if i only have casecatalyst and say adobe installed the only keys in hkey_local_machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall will be \casecatalyst4 and \adobe. So i assume i need to be able to open uninstall\ read each key and populate their display names into a combo or text box. See i need to find all currently installed programs on a pc |
| ||
| Re: vb.net 08 Reading data from multiple reg keys I found something similar in c# ( static void GetInstalled() can this be changed into .net? |
| ||
| Re: vb.net 08 Reading data from multiple reg keys I'm newer to vb.net so the others might change this a bit
|
| ||
| Re: vb.net 08 Reading data from multiple reg keys Yes, It could be, understand the C# code, and if you fail to convert any line of code to VB.NET, drop a reply soon. |
| ||
| Re: vb.net 08 Reading data from multiple reg keys okay i got this now but it returns nothing Dim uninstallKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" |
| All times are GMT -4. The time now is 7:03 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC