using Microsoft . Win32;
RegistryKey vRegistryKey = Registry . CurrentUser . OpenSubKey(
@"Software\Microsoft\Windows\CurrentVersion\Run" );
string [] ValueNames = vRegistryKey . GetValueNames();
foreach (string vValueName in ValueNames)
TextBox1 . AppendText(string . Format( "{0}={1}\r\n" ,
vValueName, vRegistryKey . GetValue(vValueName)));