Sample Applications A-1
SAMPLE APPLICATIONS
This chapter contains two sample applications written in both
VB.NET and C#. The first application can be used as a demo. The second
application shows how to use the scanning and printing functions.
VB.NET Demo Sample
'************************************************************
'* Name: 6039 Demo Application (Demo VB) *
'* Version: 1.0.0 *
'* Date: 5/1/2006 *
'* Development *
'* Environment: Microsoft Visual Studio .NET 2003 *
’* (Visual Basic.NET) *
'* Company: Paxar Americas, Inc *
'* Copyright 2006 *
'* Supply Size 2020 (2.0" x 2.0") *
'* Description: *
'* Setup Barcode Symbologies for only UPCA in the *
'* Form1_Load Event *
'* Scan/Enter UPC and Print Label with UPCA barcode *
'* References *
'* Add Reference to Ultra.dll *
'************************************************************
Imports System ' For Strings
Imports System.Drawing
' provides access to GDI+ basic graphics functionality
Imports System.Collections
' collections of objects, ArrayList
Imports System.Windows.Forms ' Forms
Imports Ultra ' Needed for Scanning & Printing
Public Class Form1
Inherits System.Windows.Forms.Form
Friend WithEvents btnClear As System.Windows.Forms.Button
Friend WithEvents btnEnter As System.Windows.Forms.Button
Friend WithEvents txtUPC As System.Windows.Forms.TextBox
Friend WithEvents lblScanEnterData As
System.Windows.Forms.Label
A