Exemplo n.º 1
0
 private void saveToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (saveFileDialog1.ShowDialog() == DialogResult.OK)
     {
         //File.WriteAllText(saveFileDialog1.FileName +".txt",RichTxt.Text);
         RichTxt.SaveFile("Hello.rtf");
     }
 }
Exemplo n.º 2
0
        private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            saveFileDialog1.ShowDialog();

            RichTxt.SaveFile(saveFileDialog1.FileName);
        }