A-10 Programmer’s Manual
//***********************************************************
//* Form1_Load Event
//* Description:
//* Set App Name & Version
//* Enable/Disable Barcode Symbologies & Commit Changes(save
//* to ultra.cfg)
//***********************************************************
private void Form1_Load(object sender, System.EventArgs e)
{
// ---Set Application Name & Version Info
Ultra.Version rVersion = new Ultra.Version();
// Instantiate Version class
rVersion.AppName = "Demo C Sharp";
// Application Name
rVersion.AppVersion = "1.0";
// Application Version
// Setup Scanner Configuration Programatically
// ---Scanner Settings
Ultra.Scan.General GENERAL = new Ultra.Scan.General();
GENERAL.Postamble = "\\n\\r";
// Append CR -- Auto-Enter
Ultra.Scan.Control CONTROL = new Ultra.Scan.Control();
// Set TriggerMode (Activate scanner on trigger press/release)
CONTROL.TriggerMode =
Ultra.Scan.Control.eTRIGGERMODE.TM_SCAN;
// Set ScannerMode (Scanner is on until T/O or successful
// scan)
CONTROL.ScannerMode =
Ultra.Scan.Control.eSCANMODE.SOM_COMPATIBLE;
// Set DataMode (application receives data is by the WM_CHAR
// standard method.)
CONTROL.DataMode =
Ultra.Scan.Control.eDATAMODE.DRM_WMCHAR;
CONTROL.SendScanStatus = false;
// Don't Send Scan Status Msg
CONTROL.DisableAllCodes();
// Disable All barcodes