Skip to main content

Microsoft Silverlight

Answered Question TextBox Doesn't handle LFRSS Feed

(0)

sorskoot
sorskoot

Member

Member

241 points

42 Posts

TextBox Doesn't handle LF

Hi,

I'm use a barcode scanner to search data in a database. I use a textbox to collect this data. Every scan sends 13 digits, a CR and a LF to the textbox. The LF doens't get handled by the textbox and send as a CRTL-J (also ASCII 10) to internet explorer, which shows the rss feeds. All i'm getting in the key-down eventhandler is a CTRL. I've tried setting the handled property to true, but even than the keydown event gets send to IE.

 Timmy

~~ Dawn is nature's way of telling you to go to bed ~~

Check my weblog at blog.timmykokkke.com

If this answers your question, please mark it so.

mchlsync
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP
Answered Question

Re: TextBox Doesn't handle LF

 Ctl + [key] or Alt+[key] doesn't work well in Silverlight. You may need to handle manually. You may want to take a look the souce code of this post. It may not be exactly what you want but you can learn how to handle key event from that example.

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities