Datalogic .NET SDK

ScanPress (Event)

 

Syntax

 

public event DecodeScanPress ScanPress

 

 

Class                           : DecodeEvent

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

The Datalogic.API.DecodeEvent.ScanPress delegate is used when the decoder raises an event. All methods referenced by Datalogic.API.DecodeEvent.DecodeScanPress will be invoked after the decoder raises an event.

 

 

Example

 

private DecodeEvent dcdEvent;

private DecodeHandle hDcd;

 

   private void MainDlg_Load(object sender, System.EventArgs e)

   {

       hDcd = new DecodeHandle(DecodeDeviceCap.Exists | DecodeDeviceCap.Barcode);

       // Initialize event

       dcdEvent = new DecodeEvent(hDcd, reqType, this);

       dcdEvent.ScanPress += new DecodeScanPress(dcdEvent_ScanPress);  

   }

 

   // Method to use when the there is a ScanPress event.

   private void dcdEvent_ScanPress(object sender, DecodeEventArgs e)  

   {

      // ...

   }

 

 

 

See Also

DecodeScanPress (Delegate),  Example #021.

 

 

Copyright © Datalogic ADC. All Right Reserved