this.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.OnKeyPress);
//Put this in InitializeComponent
protected void OnKeyPress(object sender,KeyPressEventArgs e)
{
if (e.KeyChar == 13) //This allows for detection of all catchable keys ( to my knowledge )
{
//Cool key stuff here
}
}
Regards,
John