轉帖|使用教程|編輯:鮑佳佳|2021-05-14 10:26:52.810|閱讀 252 次
概述:Essential Studio for Windows Forms界面控件包含了高性能的Windows應用程序開發中所需的所有控件,本節提供了使用WinForms條形碼的快速概述。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Essential Studio for Windows Forms界面控件包含了高性能的Windows應用程序開發中所需的所有控件,如Grids、Charts、Gauges、Menus、Calendars、Editors等等。 到目前為止, Syncfusion開發Windows Forms 控件包已達十幾年,所以該控件包是功能最齊全的控件集。
Essential Studio for Windows Forms
本節提供了使用WinForms條形碼的快速概述。
組裝部署
部署條形碼需要以下程序集參考。
Namespace: Syncfusion.Windows.Forms.Barcode Assembly: Syncfusion.SfBarcode.Windows
使用SfBarcode創建應用
在本演練中,用戶將創建包含SfBarcode控件的WinForms應用程序。
創建項目
在Visual Studio中創建新的Windows窗體項目以顯示SfBarcode。
通過Designer添加控件
可以通過從工具箱中將SfBarcode控件拖放到Designer中來將其添加到應用程序中。所需的程序集引用將自動添加。
在代碼中添加控件
為了手動添加控件,請執行以下步驟,
1)將以下必需的程序集引用添加到項目中,
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); } } }
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自: