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