views:

127

answers:

4

Hi, AnyOne knows how to do this in .NET?

A: 

Try this one out http://www.java2s.com/Code/CSharp/Event/Altkeypressed.htm

zapping
+3  A: 

The KeyEventArgs class defines several properties for key modifiers - Alt is one of them and will evaluate to true if the alt key is pressed.

Oded
This Link gives me the Idea. Thanks
Jedi Master Spooky
A: 

This is the code that finally Works

if (e.KeyCode >= Keys.A && e.KeyCode <= Keys.Z &&  e.Alt){
     //Do SomeThing
}
Jedi Master Spooky
how will your spanish and french users like this?
No Refunds No Returns
Can you explain?
Jedi Master Spooky
+2  A: 
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
    if (e.Alt && e.KeyData != (Keys.RButton | Keys.ShiftKey | Keys.Alt))
    {
        // ...
    }
}
kor_