富文本框的紧凑型条形码 [英] Compact bar code for richtextbox
本文介绍了富文本框的紧凑型条形码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在与richtextbox一起编写代码.但我不知道如何为richtextbox获得紧凑的条形码.
请帮帮我!
解决方案
此解决方法可能会有所帮助:
首先,您必须在条形码中包含定界符.
然后使用此代码(此代码假定分隔符为
"):
私有void textBox1_TextChanged(对象发送者,EventArgs e)
{
如果(textBox1.Text.Contains("
"))
{
string [] str_split = textBox1.Text.Split("
I''m working with richtextbox to write code. but I don''t know how to get compact bar code for richtextbox.
Please help me!
Thank every one!解决方案This workaround might help :
First , you have to include delimiters to your barcode.
Then use this code (This code assumes the delimiter is ''
'') :
private void textBox1_TextChanged(object sender, EventArgs e)
{
if (textBox1.Text.Contains("
"))
{
string[] str_split = textBox1.Text.Split("
这篇关于富文本框的紧凑型条形码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文