# C# - Barcode scanner
###### tags: `C#` `Barcode` `scanner`
根據這篇文章
## [Configure a barcode scanner to support specific applications](https://docs.microsoft.com/en-us/windows/uwp/devices-sensors/pos-barcodescanner-configure)
Barcode scanners can be configured in several different modes
to support specific applications.
### Keyboard wedge mode
Many barcode scanners support __keyboard wedge mode__,
which makes the barcode scanner __appear as a keyboard to Windows__.
This enables scanning barcodes into applications that
are not barcode scanner-aware such as Notepad.
When you scan a barcode in this mode,
the __decoded data from the barcode scanner gets inserted
at your insertion point as if you typed the data using your keyboard.
If you want more control over your barcode scanner from your UWP application,
you will need to configure it in a non-keyboard wedge mode.
例如 Cino FuzzyScan F680,

將 它接上 PC 的 USB 插槽,
就會在 Device Manager 中看見多一個 Keyboard。

在這個情況下, 只要開啟一個空白記事本,

然後使用它掃瞄 Barcode,

就會看見條碼資訊直接被 Input 到記事本上

在 WinForm App 中, 只要使用 ``TextBox`` 將 Focus 點上它,

再使用 Barcode scanner 掃瞄, 條碼資訊直接被 Input 到 ``TextBox``中
