I have problem with reading text from card reader connected to USB. I have method in window:
private void Window_KeyDown(object sender, KeyEventArgs e)
{
Key k = (Key)e.Key;
textBoxLogin.Text += k.ToString();
}
Problem is that, it simulates all pressed keys so if in my magnetic card i have something like: !EXAMPLE, that would read LeftShift1LeftShiftELeftShiftX etc.. Any solution how to change it? Btw i know i can click on textBox and then read all from card reader, but that should work with disabled textBox.
Thank u for any answers!