条码扫描组件。可调用摄像头进行条码扫描。
|  |  |   | 
| 图1 | 图2 | 图3 | 
| 属性 | 属性说明 | 
|---|---|
| TimeOut | 获取条码的超时时间(毫秒)。 | 
| 事件 | 事件发生条件 | 
|---|---|
| BarcodeScanned | 客户端返回条码数据时发生。 | 
    C#:
        barcodeScanner1.GetBarcode();
        //barcodeScanner1.GetBarcodeAsync();   //异步获取
            
            
    C#:
        private void barcodeScanner1_BarcodeScanned(object sender, BarcodeResultArgs e)
        {            
            if(string.IsNullOrEmpty(e.error))
            {
                this.label2.Text = e.Value;
            }
            // if (e.error=="Cancel") 判断是否点击扫描界面左上角返回键
        }
            
            注:Designer 6.3.3以上版本 ,在Web版中支持BarCodeScanner(需要使用https域名地址)。