H Mroweh

H Mroweh

  • NA
  • 12
  • 0

How to test if the user pressed the Enter Key?

Aug 29 2007 4:42 AM

Dear All,

I have a C# program and I have an on KeyPress event. I want to test the value of the key and find out if it is the Enter key. My code is like this:

public viod MyKeyPress(KeyPressEventArgs e)

{

if(e.KeyChar )

}


Answers (4)