Using SuppressKeyPress event to block a KeyUp event
<p>In a KeyDown event I used <code>SuppressKeyPress</code> to avoid calling <code>KeyPress</code> and <code>KeyUp</code> events. However, although the <code>KeyPress</code> event was stopped the <code>KeyUp</code> event still fires. Why is this?</p>

<pre><code>private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
    if (e.KeyCode == Keys.H)
    {
        listBox1.Items.Add("key down" + e.KeyCode);
        // e.SuppressKeyPress = true;
    }
}

private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
    if (e.KeyChar == 'h')
    {
        listBox1.Items.Add("key press" + e.KeyChar);
    }
}

private void textBox1_KeyUp(object sender, KeyEventArgs e)
{
    if(e.KeyCode==Keys.H)
    {
        listBox1.Items.Add("key up" + e.KeyCode);
    }
}
</code></pre>
