tags:

views:

33

answers:

2

I would like to handle the key that was left to the Right cntrl key which is equivalent to Mouse right click.

+2  A: 
private void Form1_KeyUp(object sender, KeyEventArgs e)
{
    if (e.KeyCode == Keys.Apps)
    {
        // the key in question was pressed (key code = 93)
    }
}
Darin Dimitrov
It is giving nothing as you said i write like this in bettwen that code contextmenu.show() but it is not getting displayed
Dorababu
Your localisation/keyboard settings may be precluding it. Alternatively you may have a weird keyboard. Also, I've never heard it referred to as an 'Apps' key before?
Rushyo
I didn't get yoy what you said
Dorababu
A: 

This page about Key Events in SeaMonkey has this info:

Platform special keys (Windows key, contextual menu key on Windows, Macintosh startup key, monitor control keys, etc.) do not propagate events. They should be handled in platform code if necessary.

So you may not be able to bind to that particular key. However, there may be something available at quirksmode.org to help you out.

cofiem