Hi,
In c#.net application, i want to disable context menu key of the keyboard. I don't have any idea regarding this, please help? :)
Disable context menu key of keyboard
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.


FroglegRank #1,020 · 1.9K reputationPosted Mar 30, 2011, 10:45 PM EDT
Vijay YadavRank #1,637 · 943 reputationPosted Mar 30, 2011, 10:56 PM EDT
FroglegRank #1,020 · 1.9K reputationPosted Mar 30, 2011, 11:12 PM EDT
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode== Keys.Apps)
{
e.Handled = true;
MessageBox.Show("context menu key pressed");
}
}
Not sure if it will work but give it a try
Vijay YadavRank #1,637 · 943 reputationPosted Mar 30, 2011, 11:21 PM EDT
Thanks for your reply but i want to do this for the whole system not just for single form or my application.. :)
FroglegRank #1,020 · 1.9K reputationPosted Mar 30, 2011, 11:35 PM EDT
http://sharpkeys.codeplex.com/