Morpheus Posted June 28, 2003 Posted June 28, 2003 How can I check if "KeyUp" is pressed? If I want to check if enter is pressed I just do like this: if(e.KeyChar == 13) { txtAddress.Focus(); e.Handled = true; } but it doesen't seem to be that simple with KeyUp. Quote
*Experts* mutant Posted June 28, 2003 *Experts* Posted June 28, 2003 Use this: if(e.KeyCode == System.Windows.Forms.Keys.Enter) MessageBox.Show("Enter pressed"); Quote
Morpheus Posted June 28, 2003 Author Posted June 28, 2003 Aha thanks, but how do I do for KeyUp? Quote
*Experts* mutant Posted June 28, 2003 *Experts* Posted June 28, 2003 if(e.KeyCode == System.Windows.Forms.Keys.Up) Sorry, I thought you were talking about the KeyUp event :rolleyes:, sorry. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.