Hi All,
I am working in vb.net.
On the KeyDown event of the textbox, i need to capture the character pressed and send it to a function which fires a sql query for this character.
To get the character i am using Convert.ToChar(e.keycode).
However Convert.Tochar converts the keycode to char according to its ASCII value , thus F4 gets converted to "s" as "s" has ASCII keycode of 115.Is there some other way to convert the keycode to character which won't make these wrong conversions as even if i restrict the functions keys there may be problem with other key conversion also.
Thanks in Advance,
Prerna
I am working in vb.net.
On the KeyDown event of the textbox, i need to capture the character pressed and send it to a function which fires a sql query for this character.
To get the character i am using Convert.ToChar(e.keycode).
However Convert.Tochar converts the keycode to char according to its ASCII value , thus F4 gets converted to "s" as "s" has ASCII keycode of 115.Is there some other way to convert the keycode to character which won't make these wrong conversions as even if i restrict the functions keys there may be problem with other key conversion also.
Thanks in Advance,
Prerna