IE窗口的动感效果

//-------------------------------------

//  ChangeIE.cs ? 2004 by David

//-------------------------------------

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; 

        }


    }


}

posted on 2005-03-02 17:19  David.he  阅读(115)  评论(0编辑  收藏  举报