Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to enter a separator in RichTextbox between text.. Just Like

richTextBox1.AppendText("From:");
richTextBox1.AppendText("\n" + strFrom + "");
richTextBox1.AppendText("\nTo:");
richTextBox1.AppendText("\n" + strTo + "");


And on this place i want to add a gray separator line to differentiate the header part from the from the Message body


richTextBox1.AppendText("\n\n" + strMessageBody + "\n");



how can i add programmatically using C# ??
Posted
Updated 10-May-12 23:39pm
v2

 
Share this answer
 
Comments
aliasad106 11-May-12 5:08am    
Kindly Read my question Bro.. I dnt need to format the text i need to add a LINE/Bar/Separator in between the text of my richtextbox which i am using in a Desktop application...
 
Share this answer
 
Comments
aliasad106 11-May-12 5:08am    
Kindly Read my question Bro.. I dnt need to format the text i need to add a LINE/Bar/Separator in between the text of my richtextbox which i am using in a Desktop application...

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