try { string SaveFile = ""; saveFileDialog1.Title = "Save File"; saveFileDialog1.FileName = ""; saveFileDialog1.Filter = "Word Document|*.docx"; if (saveFileDialog1.ShowDialog() != DialogResult.Cancel) { SaveFile = saveFileDialog1.FileName; textArea.SaveFile(SaveFile, RichTextBoxStreamType.UnicodePlainText); } } catch (Exception ex) { MessageBox.Show("I'm Sorry ! Something Went Wrong", "Error", MessageBoxButtons.RetryCancel, MessageBoxIcon.Stop); }
SaveFile
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)