Hi Jason,
Your code should work. Could you provide us with a small but complete
sample of your code?

Signature
Happy Coding!
Morten Wennevik [C# MVP]
"jason" <llkhor@excite.com> schrieb:
> I need to trap combination keys Alt+DownArrow in
> KeyDown events, but without any success. Here is the code :
[quoted text clipped - 4 lines]
>
> if(e.KeyCode == Keys.Down && e.Alt)
Try this:
\\\
if ((e.KeyCode == Keys.Down) && ((Control.ModifierKeys & Keys.Alt) ==
Keys.Alt))
...;
///

Signature
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/
jason - 18 Oct 2004 06:50 GMT
The code works only if textbox's parent is a form.
It does not work if textbox is a child control of DataGridColumnStyle.
Thanks.
> "jason" <llkhor@excite.com> schrieb:
>> I need to trap combination keys Alt+DownArrow in
[quoted text clipped - 13 lines]
> ...;
> ///