ByteScout Barcode Suite - C# - Winforms barcode control with barcode sdk - ByteScout

ByteScout Barcode Suite – C# – Winforms barcode control with barcode sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Suite – C# – Winforms barcode control with barcode sdk

winforms barcode control with barcode sdk in C# with ByteScout Barcode Suite

Build winforms barcode control with barcode sdk in C#

:

Step-by-step instructions on how to do winforms barcode control with barcode sdk in C#

The documentation is crafted to assist you to apply the features on your side easily. Winforms barcode control with barcode sdk in C# can be applied with ByteScout Barcode Suite. ByteScout Barcode Suite is the set that includes three different SDK products to generate barcodes, read barcodes and read and write spreadsheets: Barcode SDK, Barcode Reader SDK and Spreadsheet SDK.

C# code snippet like this for ByteScout Barcode Suite works best when you need to quickly implement winforms barcode control with barcode sdk in your C# application. If you want to know how it works, then this C# sample code should be copied and pasted into your application’s code editor. Then just compile and run it. This basic programming language sample code for C# will do the whole work for you in implementing winforms barcode control with barcode sdk in your app.

ByteScout Barcode Suite free trial version is available for download from our website. Free trial also includes programming tutorials along with source code samples.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

MainForm.Designer.cs
      
namespace BarcodeControlTester { partial class MainForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Bytescout.BarCode.Margins margins1 = new Bytescout.BarCode.Margins(); Bytescout.BarCode.SymbologyOptions symbologyOptions1 = new Bytescout.BarCode.SymbologyOptions(); this.barcodeControl = new Bytescout.BarCode.BarcodeControl(); this.SuspendLayout(); // // barcodeControl // this.barcodeControl.AddChecksum = true; this.barcodeControl.AddChecksumToCaption = true; this.barcodeControl.AdditionalCaption = "Codabar"; this.barcodeControl.AdditionalCaptionFont = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.barcodeControl.AdditionalCaptionPosition = Bytescout.BarCode.CaptionPosition.Above; this.barcodeControl.Angle = Bytescout.BarCode.RotationAngle.Degrees0; this.barcodeControl.BarHeight = 50; this.barcodeControl.CaptionFont = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.barcodeControl.CaptionPosition = Bytescout.BarCode.CaptionPosition.Below; this.barcodeControl.Dock = System.Windows.Forms.DockStyle.Fill; this.barcodeControl.DrawCaption = true; this.barcodeControl.HorizontalAlignment = Bytescout.BarCode.BarcodeHorizontalAlignment.Center; this.barcodeControl.Location = new System.Drawing.Point(0, 0); margins1.Bottom = 5; margins1.Left = 5; margins1.Right = 5; margins1.Top = 5; this.barcodeControl.Margins = margins1; this.barcodeControl.Name = "barcodeControl"; this.barcodeControl.NarrowBarWidth = 3; symbologyOptions1.CodabarChecksumAlgorithm = Bytescout.BarCode.CodabarChecksumAlgorithm.AiimCheckDigit; symbologyOptions1.CodabarStartSymbol = Bytescout.BarCode.CodabarSpecialSymbol.A; symbologyOptions1.CodabarStopSymbol = Bytescout.BarCode.CodabarSpecialSymbol.B; symbologyOptions1.Code128Alphabet = Bytescout.BarCode.Code128Alphabet.A; symbologyOptions1.DrawIntercharacterGap = true; symbologyOptions1.ShowStartStop = true; this.barcodeControl.Options = symbologyOptions1; this.barcodeControl.RenderingHint = System.Drawing.Text.TextRenderingHint.SystemDefault; this.barcodeControl.Size = new System.Drawing.Size(450, 287); this.barcodeControl.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.Default; this.barcodeControl.Symbology = Bytescout.BarCode.SymbologyType.Codabar; this.barcodeControl.TabIndex = 0; this.barcodeControl.Value = "012345"; this.barcodeControl.VerticalAlignment = Bytescout.BarCode.BarcodeVerticalAlignment.Middle; this.barcodeControl.WideToNarrowRatio = 2; // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(450, 287); this.Controls.Add(this.barcodeControl); this.Name = "MainForm"; this.Text = "Form1"; this.ResumeLayout(false); } #endregion private Bytescout.BarCode.BarcodeControl barcodeControl; } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

MainForm.cs
      
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace BarcodeControlTester { public partial class MainForm : Form { public MainForm() { InitializeComponent(); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Program.cs
      
using System; using System.Collections.Generic; using System.Windows.Forms; namespace BarcodeControlTester { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm()); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next