Strange Problem with e.KeyCode in vb.net

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello everybody,
I have a textbox in my form
I am using sendkeys.send() method in Textbox1.KeyDown to have unicode characters in my Textbox while certain key is pressed
I Have a Variable Flag as Boolean
I want the flag = True when non-alphabet keys are pressed
So I used the below code
If not (e.keycode >= 65 And e.Keycode <= 90) then
Flag = True I have used a breakpoint Here <br/>

End If
Here If I press any alphabets then also Flag becomes true
and If I see the Value of e.KeyCode then it shows
e.KeyCode = Packet{231}
Does anybody knows the solution?
Please Help if you have any kind of solution
Thanks in advance

View the full article
 
Back
Top