I once made a method like this...
Code:
private string GetLastPath()
{
RegistryKey key = Registry.CurrentUser;
key = key.CreateSubKey("Software\\Something\\SomethingElse");
return (string) key.GetValue("InitialFolder", "");
}
... and I had to use the
Microsoft.Win32 namespace. I guess you can get the idea from this.
Hope it helps, Jacob.