| //------------------------------------- // ChangeIE.cs ? 2004 by yudehui //------------------------------------- using System; using Microsoft.Win32; //对注册表操作一定要引用这个命名空间 namespace ChangeIE { class ChangeIE { [STAThread] static void Main(string[] args) { RegistryKey pregkey ; pregkey = Registry.CurrentUser.OpenSubKey("Control Panel\\Desktop\\WindowMetrics",true); if (pregkey==null) { Console.WriteLine("键值不存在"); } else { pregkey.SetValue("MinAnimate","1"); pregkey.SetValue("MaxAnimate","1"); Console.WriteLine("修改成功"); } pregkey. Close; } } } |
//------------------------------------- // ChangeIE.cs ? 2004 by yudehui //------------------------------------- using System; using Microsoft.Win32; //对注册表操作一定要引用这个命名空间 namespace ChangeIEbackColor { class ChangeIEbackColor { [STAThread] static void Main(string[] args) { RegistryKey pregkey ; pregkey = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Internet" + "Explorer\\Toolbar\\Explorer ",true); if (pregkey==null) { Console.WriteLine("键值不存在"); } else { pregkey.SetValue("BackBitmap","C:\\windows\\Greenstone.bmp"); Console.WriteLine("修改成功"); } pregkey.Close; } } } |
关注此文的读者还看过: