Click here to Skip to main content
15,898,374 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
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!
Posted
Comments
OriginalGriff 4-Mar-11 6:07am    
Would you care to try explaining that one again? Using English this time?
Albin Abel 4-Mar-11 6:10am    
There are barcode fonts available. You may use it. Use google translator to translate from your langunage to English

1 solution

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("$".ToCharArray ());
textBox1.Text = str_split[0].ToString ();
textBox2.Text = str_split[1].ToString();
}
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900