Tommy's Blog

Developer's Home

导航

Changing IE setting in C#

Posted on 2004-11-21 22:32  Tommy's Blog  阅读(336)  评论(0)    收藏  举报
public  void IESetupFooter()

    
{

    
string strKey  =  "Software\\Microsoft\\Internet Explorer\\PageSetup";
    
bool bolWritable = true;
    
string strName = "footer";
        
object oValue = "Test Footer";
    RegistryKey oKey  
= Registry.CurrentUser.OpenSubKey(strKey,bolWritable);
    Console.Write (strKey);
    oKey.SetValue(strName,oValue);
    oKey.Close();


    }