I my win app i had a button(button1), if we click the button1 "it should change the Registry Value" and hide "Send To" option in right click.
The Below Code is working in Windows Xp but not working in Windows7.
Why it shouldn't work in Windows7 & Please Give me the proper coding
private void button1_Click(object sender, EventArgs e)
public void DeactivateSendTo()
string root = "AllFilesystemObjects\\shellex\\ContextMenuHandlers\\Send To";
RegistryKey rKey = Microsoft.Win32.Registry.ClassesRoot.OpenSubKey(root, true);
Run the application under(Run as Administrator)
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)