Neodynamic Barcode Professional for .NET Compact Framework
Microsoft .NET Compact Framework 2.0 (or greater)
Microsoft Visual Studio 2005 (or greater)
This walkthrough illustrates how to easily display linear (1D) and 2D barcode images onto Smart Device forms in Pocket PC, Smartphone, Windows CE and Windows Mobile projects leveraging .NET Compact Framework technologies.
During the course of this walkthrough, you will accomplish the following activities:
Follow these steps:
'Temporally suspend drawing
Me.barcode1D1.SuspendDrawing()
'Set barcode symbology
Me.barcode1D1.Symbology = Neodynamic.CF.Barcode1D.Symbology1D.Code128
'Set value to encode
Me.barcode1D1.Code = "123456789"
'Set additional text
Me.barcode1D1.Text = "Employee ID"
'Set dimensions
Me.barcode1D1.BarWidth = 0.01F
Me.barcode1D1.BarHeight = 0.5F
'...
'Redraw barcode
Me.barcode1D1.ResumeDrawing()
//Temporally suspend drawing
this.barcode1D1.SuspendDrawing();
//Set barcode symbology
this.barcode1D1.Symbology = Neodynamic.CF.Barcode1D.Symbology1D.Code128;
//Set value to encode
this.barcode1D1.Code = "123456789";
//Set additional text
this.barcode1D1.Text = "Employee ID";
//Set dimensions
this.barcode1D1.BarWidth = 0.01f;
this.barcode1D1.BarHeight = 0.5f;
//...
//Redraw barcode
this.barcode1D1.ResumeDrawing();
'Temporally suspend drawing
Me.barcode2D1.SuspendDrawing()
'Set barcode symbology
Me.barcode2D1.Symbology = Neodynamic.CF.Barcode2D.Symbology2D.DataMatrix
'Set value to encode
Me.barcode2D1.Code = "123456789"
'Set additional text
Me.barcode2D1.Text = "Card ID"
'Set dimensions
Me.barcode2D1.DataMatrixModuleSize = 0.04F
'...
'Redraw barcode
Me.barcode2D1.ResumeDrawing()
//Temporally suspend drawing
this.barcode2D1.SuspendDrawing();
//Set barcode symbology
this.barcode2D1.Symbology = Neodynamic.CF.Barcode2D.Symbology2D.DataMatrix;
//Set value to encode
this.barcode2D1.Code = "123456789";
//Set additional text
this.barcode2D1.Text = "Card ID";
//Set dimensions
this.barcode2D1.DataMatrixModuleSize = 0.04f;
//...
//Redraw barcode
this.barcode2D1.ResumeDrawing();
Follow these steps:
'Create a Barcode1D object
Dim bc As New Neodynamic.CF.Barcode1D.Barcode1D()
'Set barcode symbology
bc.Symbology = Neodynamic.CF.Barcode1D.Symbology1D.Code128
'Set value to encode
bc.Code = "123456789"
'Set additional text
bc.Text = "Employee ID"
'Set dimensions
bc.BarWidth = 0.01F
bc.BarHeight = 0.5F
'...
'Generate barcode image and display it
Me.pictureBox1.Image = bc.GetBarcodeImage()
//Create a Barcode1D object
Neodynamic.CF.Barcode1D.Barcode1D bc = new Neodynamic.CF.Barcode1D.Barcode1D();
//Set barcode symbology
bc.Symbology = Neodynamic.CF.Barcode1D.Symbology1D.Code128;
//Set value to encode
bc.Code = "123456789";
//Set additional text
bc.Text = "Employee ID";
//Set dimensions
bc.BarWidth = 0.01f;
bc.BarHeight = 0.5f;
//...
//Generate barcode image and display it
this.pictureBox1.Image = bc.GetBarcodeImage();
'Create a Barcode2D object
Dim bc As New Neodynamic.CF.Barcode2D.Barcode2D()
'Set barcode symbology
bc.Symbology = Neodynamic.CF.Barcode2D.Symbology2D.DataMatrix
'Set value to encode
bc.Code = "123456789"
'Set additional text
bc.Text = "Card ID"
'Set dimensions
bc.DataMatrixModuleSize = 0.04F
'...
'Generate barcode image and display it
Me.pictureBox1.Image = bc.GetBarcodeImage()
//Create a Barcode2D object
Neodynamic.CF.Barcode2D.Barcode2D bc = new Neodynamic.CF.Barcode2D.Barcode2D();
//Set barcode symbology
bc.Symbology = Neodynamic.CF.Barcode2D.Symbology2D.DataMatrix;
//Set value to encode
bc.Code = "123456789";
//Set additional text
bc.Text = "Card ID";
//Set dimensions
bc.DataMatrixModuleSize = 0.04f;
//...
//Generate barcode image and display it
this.pictureBox1.Image = bc.GetBarcodeImage();
We provide best-in-class customer service and support directly from members of our dev team! If we are available when you contact us, you will get a response in few minutes; otherwise the maximum turnaround is 24hs in most cases.