Tuesday, April 12, 2005

RegistryPlus - Advanced Registry Manipulation with .NET

RegistryPlus - Advanced Registry Manipulation with .NET

"...a really small and simple API to solve those problems, and it's called RegistryPlus.
Basically, it has 3 objects:


SuperRegistryKey - a more advanced version of Microsoft.Win32.RegistryKey.
RegistryEntry - A strongly-typed object that stores an entry name and a value.
RegistryEntryCollection - A collection of RegistryEntries that you can DataBind against.

It is really straightforward to interact with. Here's an example that binds the key values agsinst a CheckedListBox.

1Public Sub Form_Load(ByVal sender As Object, ByVal e as EventArgs) Handles MyBase.Load
2 Dim key As New SuperRegistryKey("Software\Microsoft\Terminal Server Client\Default", True)
3 CheckedListBox1.DisplayMember = "Value"
4 CheckedListBox1.DataSource = key.Entries
5End Sub

...


Robert McLaws has released a cool little Windows Registry library which he calles RegistyPlus.

I thought it was cool that it could be used as a Data Source...

No comments: