Here you go...
First add the following to your uses
using Microsoft.Win32;
And use this method
void ListExtensions()
{
foreach (string keyname in Registry.ClassesRoot.GetSubKeyNames())
{
if (keyname.StartsWith("."))
{
listBox1.Items.Add(keyname);
}
}
}