title: Allow Only Barcode Scanner and Eliminate Keyboard Input
body: <p>I have made a Windows Form application with a textbox which uses Barcode scanner to get any input value. I want user to use only Barcode Scanner to fill any value in it, and don't want to enter any input using my regular keyboard.</p>
  
  <p>Since my Barcode works mimics as a keyboard, so disabling my regular keyboard will also disable my Barcode scanner to work.</p>
  
  <p>I've searched manywhere to implement this, and found few answers were suggesting to add a Stopwatch/Timer to eliminiate all keypress which occurs within 50milliseconds, since Barcode can scan all values within 50 milliseconds, but no human can type faster than 50 miliseconds.</p>
  
  <p>I also tried this way, but this fails when I randomly punches my fingers on keyboard keys, it reads out since some of keys fired within 50miliseconds.</p>
  
  <p>Also tried below code but even this does not work as expected for me</p>
  
  <pre><code>private void rtBoxInput_KeyDown(object sender, KeyEventArgs e)
  {
      e.SuppressKeyPress = true;
  }
  </code></pre>
  
  <p>Please suggest some good way to implement this?</p>