I have a text box that has a keydown event when the key entered is "return". I have a barcode reader that reads the text in it, but it does not write more than one key, i.e. only one letter is written, say "a", and if I write the second letter "a", it is rewritten to become "b", but does not become "ab". Does anyone know what is causing this?
private void barcodetexbox_KeyDown(object sender, KeyEventArgs e) { if (scannedString.Text != "" && e.Key==Key.Return) {
and in "MainWindow.xaml"
<TextBox x:Name="scannedString" HorizontalAlignment="Left" Height="50" Margin="468,164,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="450" FontSize="24" Focusable="True" Padding="0,6,0,0" KeyDown="barcodetexbox_KeyDown" />
source share