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); } } |
Loading

Join the conversation! Your thoughts help the community grow.