在 C# 中隐藏指定的控制面板项
Hide specified Control Panel items in C#
我想在 C# 的控制面板中隐藏特定项目,我可以使用 "gpedit" 执行以下操作:
Administrative Templates->User Configuration->Control Panel->Hide specified Control Panel items
添加"Matrox PowerDesk"此对象将从控制面板中删除。
但我需要用 C# 来完成这项工作,我知道有一种方法可以在以下路径中使用注册来完成:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\
但我不知道 Key/value 我应该添加什么到这个路径来删除这个项目。
这里link演示如何使用注册表隐藏控制面板项目。
http://www.howtogeek.com/howto/28919/remove-or-hide-unwanted-items-from-the-control-panel-in-windows-7/
如果您知道如何使用 C# 使用注册表,那么您可以轻松做到这一点。
我想在 C# 的控制面板中隐藏特定项目,我可以使用 "gpedit" 执行以下操作:
Administrative Templates->User Configuration->Control Panel->Hide specified Control Panel items
添加"Matrox PowerDesk"此对象将从控制面板中删除。
但我需要用 C# 来完成这项工作,我知道有一种方法可以在以下路径中使用注册来完成:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\
但我不知道 Key/value 我应该添加什么到这个路径来删除这个项目。
这里link演示如何使用注册表隐藏控制面板项目。 http://www.howtogeek.com/howto/28919/remove-or-hide-unwanted-items-from-the-control-panel-in-windows-7/
如果您知道如何使用 C# 使用注册表,那么您可以轻松做到这一点。