Link to home
Start Free TrialLog in
Avatar of allelopath
allelopath

asked on

if (e.KeyChar == 13)

I came across this line of code:
if (e.KeyChar == 13)

Open in new window

The 13 is carriage return. Is the a C# constant define for this?
ASKER CERTIFIED SOLUTION
Avatar of p_davis
p_davis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of p_davis
p_davis

System.Windows.Forms.Keys.Return
Avatar of allelopath

ASKER

if (e.KeyChar.Equals(Keys.Return)) {

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial