BizCode Barcode Generator for Winforms
The most robust & powerful barcode component for Microsoft .NET Windows Forms
Quick Overviews
  • Professional barcode control
  • Flexible controls provided
  • Support WinForms projects
  • Linear & 2D barcodes support
  • Winforms Data-binding support
How to Generate UPC-A images in .NET WinForms
UPC-A Generator for Winforms is able to be written entirely and completely in C# and Visual Basic .NET, which enables developers to generate and create UPC-A barcode in .NET Windows Forms applications. It also supports supplementary 2 & 5 digits barcodes to be added for UPC-A barcodes.
With UPC-A Generator for Winforms may customize every aspect of UPC-A barcode images, such as UPC-A barcode image rotation angle, UPC-A barcode image resolution in DPI, image formats, etc. Here is a detailed developer guide for setting UPC-A images in Visual C#; others please see:
UPC-A Image Related Properties

Supplementary Barcode

With Barcode Generator for Winforms, users are allowed to add EAN-2 or EAN-5 supplementary barcode for UPC-A barcode using Supplement related property, including Symbology, SupplementCode, etc.

Human-readable Text

With Barcode Generator for Winforms, users are allowed to show or hide human-readable text under UPC-A barcode symbols using DisplayText property.

Barcode Resolution

With Barcode Generator for Winforms, users are allowed to customize the resolution of their UPC-A barcode images in any way they want using Resolution property.

Barcode Rotation

With Barcode Generator for Winforms, users are allowed to set UPC-A barcode images into 0, 90, 180 and 270 degrees using Rotate property.

Image Formats

With Barcode Generator for Winforms, users are allowed to save & output UPC-A generated barcode images into Png, Jpeg/Jpg, Gif, Tiff, Bmp, etc using ImageFormat property.

.NET Winforms Graphic Objects

With Barcode Generator for Winforms, users are allowed to save generated UPC-A barcode images into .NET Graphics, Stream and Bitmap objectsin accordance with users' needs.
Customize UPC-A Barcode Images in Winforms
Ensure have installed those programs before you customize UPC-A image in .NET Winforms:
Customize UPC-A Barcode Images in Windows Forms Using BarcodeControl
  1. Add .NET Winforms Barcode Control onto your .NET Visual Studio Toolbox;
  2. Drag and drop the WinLinearBarcode control into the Forms;
  3. You will see a barcode image generated;
  4. Right click you mouse to activate barcode setting panel and choose Symbology to UPC-A;
  5. Select Resolution, Rotate, DisplayText, ImageFormat respectively to customize your UPC-A barcodes.
Customize UPC-A Barcode Images in Winforms Using C#, VB.NET Class
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.UPCA;
barcode.Code = "01234567890";

// Change UPC-A resolution in DPI
barcode.Resolution = 104;

// Rotate UPC-A barcode image
barcode.Rotate = Rotate.Rotate180;

// Show UPC-A human-readable text
barcode. DisplayText = true;

// Save UPC-A in multiple image formats
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/upc-a-csharp.gif");

// Save UPC-A barcode in Winforms objects
public void drawBarcode2ImageFile(string filename);
public void drawBarcode2Stream(Stream fileStream);
public byte[] drawBarcodeAsBytes();
public Bitmap drawBarcodeOnBitmap();
public void drawBarcodeOnGraphics(Graphics graphics);
Dim barcode As BusinessRefinery.Barcode.Linear = 
New BusinessRefinery.Barcode.Linear()

' Add EAN-2 barcode for UPC-A barcode
barcode.Symbology = BusinessRefinery.Barcode.Symbology.UPCA_2
barcode.Code = "01234567890"
barcode.SupplementCode = "12"
barcode.SupplementHeight = 0.4
barcode.SupplementSpace = 20

' Show UPC-A human-readable text
barcode.DisplayText = true

' Change UPC-A resolution in DPI
barcode.Resolution = 104

' Rotate UPC-A barcode image
barcode.Rotate = Rotate.Rotate180

' Save UPC-A in multiple image formats
barcode.Format = ImageFormat.Gif
barcode.drawBarcode2ImageFile("c:/upc-a-2-vb-net.gif")

' Save UPC-A barcode in Winforms objects
Public Sub drawBarcode2Stream(ByVal fileStream As System.IO.Stream)
Public Sub drawBarcodeOnGraphics(ByVal graphics As
System.Drawing.Graphics)
Public Function drawBarcodeAsBytes() As Byte()
Public Function drawBarcodeOnBitmap() As System.Drawing.Bitmap