本文介绍了如何在条形码C#上方和下方写入文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<pre lang="cs">public void drawbarcode() { try { string Fontname = comboBox1.Text; String degree = comboBox4.Text; BaseBarcode b = BarcodeFactory.GetBarcode(GetEnum(Fontname)); b.ChecksumAdd = checkBox1.Checked; b.ChecksumVisible = checkBox2.Checked; b.Number = textBox1.Text; b.Rotation = GetEnumdegree(degree); pictureBox1.Image = b.Render(); panel1.Controls.Add(pictureBox1); panel2.Controls.Remove(label25); }
推荐答案
sorry if you have no idea to how to write text above and below the barcode then no need to give suggestion to other.i know how to use label. but here we can not use label. it will no fit with barcode
为什么要一遍又一遍地发布相同的代码段,并用没有解释吗?您可以通过自己绘制文本或使用标签控件将文本放在屏幕上.在我看来,您似乎正在尝试做一个超越自己的事情,我建议您放弃这项任务,并阅读一本好的初学者书籍. Why are you posting this same snippet over and over and asking different questions with no explanation ? You put the text on the screen by drawing it yourself or using a label control. You seem to me to be trying to do something that is well above you, I suggest abandoning this task, and reading a good beginners book.
更多推荐
如何在条形码C#上方和下方写入文本
发布评论