• 显示Windows版本号


    实现效果:

      

    知识运用:

      PaintDesktopVersion键

    实现代码:

            private void button1_Click(object sender, EventArgs e)
            {
                RegistryKey rk;
                rk = Registry.CurrentUser;
                rk = rk.CreateSubKey("Control Panel\Desktop");
                rk.SetValue("PaintDesktopVersion",0);
                MessageBox.Show("设置成功! 请刷新桌面");
            }
            private void button2_Click(object sender, EventArgs e)
            {
                RegistryKey rk;
                rk = Registry.CurrentUser;
                rk = rk.CreateSubKey("Control Panel\Desktop");
                rk.SetValue("PaintDesktopVersion", 1);
                MessageBox.Show("设置成功!请刷新桌面");
            }
    

     

  • 相关阅读:
    springMVC总结
    spring总结
    dubbo文档
    mysql集群
    JVM-优化
    JVM-GC日志打印
    JVM-垃圾回收
    JVM-问题定位示例
    C++11
    《疯狂的程序员》
  • 原文地址:https://www.cnblogs.com/feiyucha/p/10334033.html
Copyright © 2020-2023  润新知