c# ProcessCmdKey overload, match generic combination
- by leo
Hi all,
On some control, I want ProcessCmdKey to return true if the keys pressed by the user were ALT and any letter of the alphabet.
I'm able to return true if the user presses Alt with the following code, but how can I add the condition of a letter also pressed ?
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if ((keyData & Keys.Alt) != 0) {
return true;
}
}
Thanks.