954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help Rich Text Box

Hello I want make mini word.but here is big problem within.........The problem is that,when i save my file ,it save.But its encoding does not save.For Example: I type some line as font size =30 and save it but next time when i open it. It open default size as =10.
Pleas help for this .The code is

private void fontToolStripMenuItem_Click(object sender, EventArgs e)
        {

            fontDialog1.Font = richTextBox1.Font;
            if (fontDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                richTextBox1.SelectionFont = fontDialog1.Font;

            }
        }
    private void foreColorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            colorDialog1.Color = richTextBox1.ForeColor;

            if (colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                richTextBox1.SelectionColor = colorDialog1.Color;

            }


        }
yousafc#
Junior Poster in Training
82 posts since Feb 2011
Reputation Points: 10
Solved Threads: 1
 

In which format do you save it? I hope not it txt. Iam affraid best solutin your be to use *.doc. But in this case you would need some additional code for Converting the cryped doc code.

Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474
 

For Example : i Typed some lines and gave bold and font size increase it and saved.
But when i open this file it open with out bold and font size increase.just simple text.Please solve this problem as soon as posible

yousafc#
Junior Poster in Training
82 posts since Feb 2011
Reputation Points: 10
Solved Threads: 1
 

Hello Mitja Please Help ............................
When i save file in txt format with text with bold and italic and color effect gave it
i all works but when i save and after when i reopen it.I shocked it open but with Plane text not open as my save

yousafc#
Junior Poster in Training
82 posts since Feb 2011
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: