private void button1_Click(object sender, EventArgs e)
{
RegistryKey rk = Registry.CurrentUser.OpenSubKey("SOFTWARE\\MICROSOFT\\INTERNET EXPLORER\\MAIN");
if(rk != null)
{
foreach (string name in rk.GetValueNames())
{
if (rk.GetValueKind(name) == RegistryValueKind.String)
{
int rowIndex = dataGridView1.Rows.Add();
dataGridView1.Rows[rowIndex].Cells[0].Value = name;
}
}
rk.Close();
}
}