Hi, AnyOne knows how to do this in .NET?
A:
Try this one out http://www.java2s.com/Code/CSharp/Event/Altkeypressed.htm
zapping
2010-01-27 13:09:32
+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
2010-01-27 13:10:26
This Link gives me the Idea. Thanks
Jedi Master Spooky
2010-01-27 13:32:40
A:
This is the code that finally Works
if (e.KeyCode >= Keys.A && e.KeyCode <= Keys.Z && e.Alt){
//Do SomeThing
}
Jedi Master Spooky
2010-01-27 13:32:11
+2
A:
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.Alt && e.KeyData != (Keys.RButton | Keys.ShiftKey | Keys.Alt))
{
// ...
}
}
kor_
2010-01-27 13:33:59