Click here to Skip to main content
15,922,015 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys... i would like to ask how do i disable the control panel using c#?and could it be applied in windows xp and windows 7? Thanks in advance guys
Posted

1 solution

To disable a control in the control panel, it can be done programmatically using
Control.ControllCollection.Remove()


But to disable Control Panel access to any user, itz possible thro registry editor. If you want to do it manually, just follow the below steps. If you want to write a program, re write into C# code.

Get keys KEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies.
Get string value NoControlPanel.
If (string value not found)
     Add under Policies Key.
Update string value to 1 for Disable; 0 Enable.
 
Share this answer
 
Comments
Madzmar25 24-Aug-11 23:55pm    
thanks for the solution ill try this one it really help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900