Hi everyone i have a key down event as follows
if (e.KeyCode == Keys.C && e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) { var amount = textBo
Add e.SuppressKeyPress = true; e.Handled = true; to your handler when you want to prevent the key press from going forward.
e.SuppressKeyPress = true; e.Handled = true;
As an aside, your if statement is equivalent to if (e.KeyCode == Keys.Return), since it will never be equal to both C and Enter.
if (e.KeyCode == Keys.Return)
C
Enter