Cannot get correct character in textbox.keyup event

  • Thread starter Thread starter slcman
  • Start date Start date
S

slcman

Guest
Hi all,

I build a simple logic who check if character typed in a textbox is a number or not thru keyup event. If character isn't a number I delete it. My code doesn't work because character in textbox and e.KeyCode is different!!!! Look the screen shot (stop at line 223) tbResistor is my textbox so in this example character is '-'. e.KeyCode is '½', for have this character I have to press alt + '-' key. My keyboard is canadian french, I tried to change my thread.currentUIculture to canadian french and it doesn't work.

need help....don't know where to start

thanks19432.jpg

Continue reading...
 
Back
Top