刪除我的電腦上下菜單中的屬性
阿新 • • 發佈:2019-01-29
mage ren obj strong ron alt value 知識 mic
實現效果:
知識運用:
NoPropertiesMyComputer鍵
實現代碼:
private void button1_Click(object sender, EventArgs e) { RegistryKey rk = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"); rk.SetValue("NoPropertiesMyComputer",1,RegistryValueKind.DWord); MessageBox.Show("刪除\"屬性\"功能成功"); } private void button2_Click(object sender, EventArgs e) { RegistryKey rk = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"); rk.SetValue("NoPropertiesMyComputer", 0, RegistryValueKind.DWord); MessageBox.Show("恢復\"屬性\"功能成功"); }
刪除我的電腦上下菜單中的屬性