<p>How to cancel a keypress event in a textbox after pressing the return key.</p>

Set the Handled property of KeyPressEventArgs handler parameter to true.
Example from msdn:
```
```
private void keypressed(Object o, KeyPressEventArgs e)
{
    if (e.KeyChar == (char)Keys.Return)
    {
        e.Handled = true;
    }
}
```
```
See
http://msdn.microsoft.com/en-us/library/system.windows.forms.keypresseventargs.handled.aspx
for more info.