Essential Studio for Windows Forms界面控件包含了高性能的Windows应用程序开发中所需的所有控件,本节提供了使用WinForms条形码的快速概述。
本节提供了使用WinForms条形码的快速概述。
组装部署
部署条形码需要以下程序集参考。
Namespace: Syncfusion.Windows.Forms.Barcode Assembly: Syncfusion.SfBarcode.Windows
使用SfBarcode创建应用
在本演练中,用户将创建包含SfBarcode控件的WinForms应用程序。
创建项目
在Visual Studio中创建新的Windows窗体项目以显示SfBarcode。
通过Designer添加控件
可以通过从工具箱中将SfBarcode控件拖放到Designer中来将其添加到应用程序中。所需的程序集引用将自动添加。

在代码中添加控件
为了手动添加控件,请执行以下步骤,
1)将以下必需的程序集引用添加到项目中,
- Syncfusion.SfBarcode.Windows
2)创建SfBarcode控件实例并将其添加到Form
using Syncfusion.Windows.Forms.Barcode;namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); SfBarcode sfDataGrid1 = new SfBarcode(); sfBarcode1.Text = "http://www.google.com"; this.Controls.Add(this.sfBarcode1); } }}
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!