Enter Key

  • Thread starter Thread starter Xarky
  • Start date Start date
X

Xarky

Hi,
I am reading text from a textbox, and need to check which character
is the Enter Key. My problem is that I can't find how to handle the
ENTER key (ie \r\n or ?????)


Thanks
 
Hi Xarky,

An easy way to find out which keycode or character a certain key gives is
to trap the KeyDown/KeyPress event and see what is sent to your program
(output the code in a messagebox or something).

The enter key gives the \n character or (char)13
 
Hi Xarky,

The easiest way is to use regular expressions I believe. even thought it is
not that difficult to code it yourself.
 
Back
Top