C# barcode 3 of 9@H_301_1@
参考:[C#][VB.NET]產生 Barcode@H_301_1@
http://www.dotblogs.com.tw/chou/archive/2010/01/21/13188.aspx@H_301_1@
-------------------@H_301_1@
1、下载字体@H_301_1@
http://www.squaregear.net/fonts/free3of9.shtml@H_301_1@
@H_301_1@
2、解压安装字体@H_301_1@
@H_301_1@
开始写程序:@H_301_1@
@H_301_1@
@H_301_1@
private void button1_Click(object sender,EventArgs e)
{
label1.Text = "*" + textBox1.Text.ToUpper() + "*";
label1.Font = new Font("Free 3 of 9",70,label1.Font.Style,label1.Font.Unit); @H_301_1@
} @H_301_1@
运行结果:@H_301_1@
@H_301_1@