feiyucha

实现效果:
  

知识运用:

  NoDispScrSavPage键值

实现代码:

        private void radioButton2_Click(object sender, EventArgs e)
        {
            RegistryKey rk = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\System");
            if (radioButton1.Checked == true)
                rk.SetValue("NoDispScrSavPage", 1, RegistryValueKind.DWord);
            else if (radioButton2.Checked == true)
                rk.SetValue("NoDispScrSavPage", 0, RegistryValueKind.DWord);}
        }

  

分类:

技术点:

相关文章:

  • 2021-12-13
  • 2022-02-09
  • 2022-01-06
  • 2022-01-01
  • 2021-12-23
  • 2021-12-27
  • 2021-11-30
  • 2022-01-02
猜你喜欢
  • 2022-01-16
  • 2021-12-06
  • 2021-11-20
  • 2021-12-25
  • 2021-12-02
  • 2021-11-30
  • 2021-12-27
相关资源
相似解决方案