The keyboard wedge behaves just like a keyboard, when it scans something it
sends the scanned code as text, just like a regular keyboard would, to the
control that has focus. As long as your control has focus it will get a
TextChanged event when the scanner sends the data. You might be having some
focus problems, have you tried just a simple form with a TextBox and
ListBox? Something like this will show you what's happening:
private void textBox1_TextChanged(object sender, System.EventArgs e)
{
listBox1.Items.Add( string.Format( "TextChanged \"{0}\"",
textBox1.Text ) );
}
The only thing that might be difficult is determining the end of the scan.
In my test, I got a TextChanged for each char in the scan, so you'd want to
do some validation of the data to only add the code to your list when it is
a complete code.
--
Floyd Burger
"Mudasir Ahmed" <mu***********@yahoo.com> wrote in message
news:O0****************@TK2MSFTNGP12.phx.gbl...
Hi Floyd
Thanks for the reply. I am using Keyboard Wedge. That is how its been
setup in the labs.
The TextChange event does not fire until the user navigates or sets a
new focus to other object on the form.
So I dont know how to capture the data after the user scans it.
Please help me.
Thank you
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!