0
How to code save button?
I m writing program that saves searches updates data I need help
2 Answers
+ 4
hmm... You gonna need to store data into an external file. Then on load read that file again.
0
You can create a text file,and store data in.Using StreamWriter you can do it,or use SaveFileDialog.
//streamwriter
StreamWriter sr = new StreamWriter("file save path");
sr.Write(richTextBox1.Text);
sr.Close();
//or use savefiledialog
SaveFileDialog sv = new SaveFileDialog();
if(sv.ShowDialog()==Dialog.Result)
{
richTextBox1.SaveFile("file save path");
}