vb.net - Visual Basic - how to prevent keyboard keys in textbox -


i want create program site http://www.lexilogos.com/clavier/araby.htm. when click on key example "m" writes "م", programmed buttons in visual basic program send keystrokes textbox. when tried code below, when hit keyboard key clicked on button in visual basic sends keystroke

if (getasynckeystate(65))     button19.performclick() end if 

and works write normal keyword hit, writes 2 keywords, example "m" , "م".

is there solution?

you can try that:

private sub textbox1_keypress(sender object, e system.windows.forms.keypresseventargs) handles textbox1.keypress         if e.keychar = "a"             e.keychar = "1"         end if     end sub 

.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -