zoukankan      html  css  js  c++  java
  • 删除我的电脑上下菜单中的属性

    实现效果:

      

    知识运用:

      NoPropertiesMyComputer键

    实现代码:

            private void button1_Click(object sender, EventArgs e)
            {
                RegistryKey rk = Registry.CurrentUser.CreateSubKey(@"SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer");
                rk.SetValue("NoPropertiesMyComputer",1,RegistryValueKind.DWord);
                MessageBox.Show("删除"属性"功能成功");
            }
            private void button2_Click(object sender, EventArgs e)
            {
                RegistryKey rk = Registry.CurrentUser.CreateSubKey(@"SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer");
                rk.SetValue("NoPropertiesMyComputer", 0, RegistryValueKind.DWord);
                MessageBox.Show("恢复"属性"功能成功");
            }
    

      

  • 相关阅读:
    Babelfish
    【动态规划】货币面值
    contest 1.18
    contest 1.17
    contest 1.16
    contest 1.15
    contest 1.14
    contest 1.13
    contest 12.31
    [cf]Round #529 (Div. 3)
  • 原文地址:https://www.cnblogs.com/feiyucha/p/10333486.html
Copyright © 2011-2022 走看看