Neither e.KeyCode or e.KeyValue exist in a (KeyEventArgs e)
for example in:
'vb.net
Private Sub somecontrol_KeyUp(ByVal sender As System.Object, ByVal e As System.Windows.Input.KeyEventArgs)
'KeyCode and KeyValue are not properties of e
End Sub
or
//c#
private void somecontrol_KeyUp(object sender, KeyEventArgs e){
// KeyCode and KeyValue are not properties of e
}
is there another "Key State" event I should be using? I've tried a few of them... same results
The reason I want the numeric character values is because I'm using a barcode reader (which simulates keystrokes) for input. It's much easier to work with the numeric key/character values than it is the "Key" itself. I've built many of these barcode and magnetic strip reading types of apps before in vb 3-6, c++, .net 1.1 and 2, but both vb.net and C# 3.5 are plaguing me. the best way to handle the input is with the ASCII character values coming in that way to can easily distinguish between cases and detect characters 10, 13 9, 41, 20 etc.