I don't know how you want your bar code split up, but you could try doing it in the TextBox.TextChanged
event?:
private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
{
TextBox focusedTextBox = (TextBox)sender;
string barCode = focusedTextBox.Text;
TextBox1.Text = barCode.Substring(0, 3);
TextBox2.Text = barCode.Substring(3, 3);
TextBox3.Text = barCode.Substring(6, 3);
}
So the idea is to scan into one TextBox
and just copy the relevant part of the scanned bar code to the relevant TextBox
.