Windows Develop Bookmark and Share   
 index > Windows Forms General > Font Modifications
 

Font Modifications

aim trying to make a notepad project but in the section of font i want after i close my application i can see the modifications i need on the

rich textbox font because after i save the file as a txt file when i open it again i see the text in the default font can any one tell me how

can i doi this

the code for the font men strip is:

private void fontToolStripMenuItem_Click_1(object sender, EventArgs e)
{
fontDialog1.ShowColor = true;

fontDialog1.Font = richTextBox1.Font;
fontDialog1.Color = richTextBox1.ForeColor;

if (fontDialog1.ShowDialog() != DialogResult.Cancel)
{
richTextBox1.Font = fontDialog1.Font;
richTextBox1.ForeColor = fontDialog1.Color;

//fontDialog1.ShowDialog();

}


}

hulk132  Monday, September 21, 2009 4:26 PM
TXT file is just plain old text, you should save your file as RTF (rich text format), it will include textformatting (font, color, weight etc..)

Or if you want it even richer you can save as HTML.

VB.NET to C# http://www.developerfusion.com/tools/convert/vb-to-csharp/
Se3ker385  Monday, September 21, 2009 4:40 PM
TXT file is just plain old text, you should save your file as RTF (rich text format), it will include textformatting (font, color, weight etc..)

Or if you want it even richer you can save as HTML.

VB.NET to C# http://www.developerfusion.com/tools/convert/vb-to-csharp/
Se3ker385  Monday, September 21, 2009 4:40 PM

You can use google to search for other answers

Custom Search

More Threads

• Report viewer on tab
• A Data entry form slows down after every iteration
• highlight the contents of textbox
• how to use masktextBox with dates with localization
• Cancelling an asynchronous query w/ BackgroundWorker
• Invalid cross-thread operations and CheckForIllegalCrossThreadCalls=false
• Grid comes on top of sine waves
• webbrowser and multilin text box
• Can access field of partial class from other part of it.
• .net 2.0 and VS 2005 release date