How to read carriage return from SIP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am using SIP 1st time and have it placing text into textbox. I want the
textbox to stop text entry when the SIP return key is pressed. How do I do
this?

Thanks, drumred
 
You could set the MaxLength property of the textbox when you receive a
caridge return char:
Something like the following:

mytext.MaxLength = mytext.Length;

Regards
Simon.
 
Thanks for replying Simon.

Simon Hart said:
You could set the MaxLength property of the textbox when you receive a
caridge return char:
Something like the following:

mytext.MaxLength = mytext.Length;

Regards
Simon.
 
Thanks for replying. Simon, how do I know my textbox has received a carriage
return? The textbox 'TextChanged' property doesn't fire on a carriage
return. I hear a beep when I press the carriage return on the SIP but
programmatically need to know the carriage return was pressed so I can stop
data entry.

drumred
 
Back
Top