Save File As Text Format Or In RTF Format...


 

string filename=null;

 

//On The Save Button's Click Event...

private void btnLoad_Click(System.Object sender, System.EventArgs e)

{

if (SaveFileDialog1.ShowDialog == DialogResult.OK)

       {

              //Store The Filename Into Variable...

              filename = SaveFileDialog1.FileName;

              //Save File...

              RichTextBox1.SaveFile(filename);

}

}