扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:于德慧 来源:天极网 2007年11月13日
关键字:
//------------------------------------- // 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; } } } |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。