|
-
Feb 22nd, 2004, 12:05 PM
#1
Thread Starter
Fanatic Member
Getting registry names
Hi All, ive coded my app to show all sub keys of a particular key, i would like to know loop through the key and obtain all the names to show in a list box
Firstly can you pick up the registry item names (there not folders) so that i can display then in a list box ?
I am curretly building a defect management system for software and web developers,
If you wana try it out (beta test) and keep it for free just send me a message
-
Feb 22nd, 2004, 02:05 PM
#2
Thread Starter
Fanatic Member
can any one supply me with some code to loop through the entire registry ? or is it possible to find a particular key within the registry ?
I am curretly building a defect management system for software and web developers,
If you wana try it out (beta test) and keep it for free just send me a message
-
Feb 22nd, 2004, 02:18 PM
#3
Sleep mode
Basically , you use GetSubKeyNames function for each class in Registery Base Class to get registry Root Names .
Do the rest of the Root keys like this :
VB Code:
Dim reg As Registry
For Each Skey As String In reg.ClassesRoot.GetSubKeyNames()
Me.ListBox1.Items.Add(Skey)
Next
For Each Skey As String In reg.CurrentConfig.GetSubKeyNames
Me.ListBox1.Items.Add(Skey)
Next
.
.
.
etc
-
Feb 22nd, 2004, 02:34 PM
#4
Thread Starter
Fanatic Member
that loops the folders, how do you loop the contents of the folder ?
I am curretly building a defect management system for software and web developers,
If you wana try it out (beta test) and keep it for free just send me a message
-
Feb 22nd, 2004, 03:06 PM
#5
Sleep mode
You need kind of recusive method . I'll see if it's possible though .
-
Feb 22nd, 2004, 03:08 PM
#6
Thread Starter
Fanatic Member
nice one thanks priate this has been pissing me off all day just feel like giving up now, and its not even for a paying customer :O( its just a little app i wanted to write (how annoying)
thanks for your help
I am curretly building a defect management system for software and web developers,
If you wana try it out (beta test) and keep it for free just send me a message
-
Feb 22nd, 2004, 03:59 PM
#7
Thread Starter
Fanatic Member
It can be done because theres a com object thats doing it
http://www.componentspace.com/regist...desamples.aspx
Not worth me buying it, as im giving the app to whom ever wants it, for free
I am curretly building a defect management system for software and web developers,
If you wana try it out (beta test) and keep it for free just send me a message
-
Feb 23rd, 2004, 05:37 AM
#8
Sleep mode
This saved me trying to figure out how to loop throughout the registry . It needs more coding though .
http://www.developerfusion.com/show/1676/8/ if you have any problem with C# synatx , ask here .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|