I have Windows Application written in c# which displays a form full-screen divided into six equal segments. Each segment has a combination of textbox, listbox, and button controls. I have six wireless keyboards plugged into the machine and each keyboard controls one of the segments.
I have used the Raw Input example proviced on http://www.codeproject.com/KB/system/rawinput.aspx?fid=375378&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2834754&fr=1#xx0xx
to capture keyboard events and forward to the appropriate segment on the screen.
The problem is focus. If one of the controls has focus and a keyboard key is clicked the raw input gets forwarded to the control however the control also gets the input resulting in a duplicate keystroke being processed. To illustrate, if a textbox has the focus and I click the letter A the textbox shows "AA".
I can't seem to figure this out property so I wondered if there is a way I could make this user control simply ignore input it received directly.
Thank you for any help!