zixing wang

zixing wang

  • NA
  • 10
  • 0

How to save contents of an edited richtextbox on a C# form

Sep 12 2008 10:40 AM

I editted and saved a richtextbox contents that was loaded from a text file using the following codes but it does not work. Anyone can help me.

private void btnSave_Click(object sender, EventArgs e)

{

rtbData.Enabled = true;

rtbData.Update();

rtbData.SaveFile("c:/DDE_Log1.txt", RichTextBoxStreamType.PlainText);

}


Answers (2)