如何在条形码C#上方和下方写入文本

编程入门 行业动态 更新时间:2024-10-22 23:00:52
本文介绍了如何在条形码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#上方和下方写入文本

本文发布于:2023-06-07 21:57:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/568496.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:条形码   文本   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!