Text Save
I am very beginner in c#, how i save text field in a file like notepad or word pad?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tanmay SarkarRank #1,407 · 1.2K reputationPosted Jul 29, 2010, 7:19 PM EDT
private void button1_Click(object sender, EventArgs e)
{
if (saveFileDialog1.ShowDialog() != DialogResult.Cancel)
richTextBox1.SaveFile(saveFileDialog1.FileName);
}
If it help you mark it as ans.
Thank you