Paxar 6039 Printer User Manual


 
Sample Applications A-37
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main()
{
Application.Run(new Form1());
}
//***********************************************************
//* Form1_Load Event
//* Description
//* Form Load Event - Enable Barcode Symbologies
//* Initialize Text Fields & Set Focus
//***********************************************************
private void Form1_Load(object sender, System.EventArgs e)
{
// --Display Status to user
lblStatus.Text = "Please Wait...";
// --Change Cursor to Hour Glass
Cursor.Current = Cursors.WaitCursor;
//--Refresh the Screen
this.Refresh();
//***********************************************************
// Setup Scanner Configuration Programatically
//***********************************************************
// Instantiate Control class
Ultra.Scan.Control Scanner = new Ultra.Scan.Control();
// Set ScannerMode (Scanner is on until T/O or successful
// scan)
Scanner.ScannerMode =
Ultra.Scan.Control.eSCANMODE.SOM_COMPATIBLE;
// Set DataMode (Application receives data from the scanner)
Scanner.DataMode =
Ultra.Scan.Control.eDATAMODE.DRM_SMSCANCHAR;
// Set TriggerMode (Activate scanner on trigger press/release)
Scanner.TriggerMode =
Ultra.Scan.Control.eTRIGGERMODE.TM_SCAN;
// Send Scan Status messages to the application
Scanner.SendScanStatus = true;
// Enable Send Scan Status