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.
TypeScript
private void btnSave_Click(object sender, EventArgs e)
{
rtbData.Enabled = true;
rtbData.Update();
rtbData.SaveFile("c:/DDE_Log1.txt", RichTextBoxStreamType.PlainText);
}
John6 pointsPosted Sep 12, 2008, 9:46 AM EDT
zixing wang9 pointsPosted Sep 15, 2008, 4:53 AM EDT
John:
It looks strange. After I created a new text file and linked to my codes, it works just fine.
I looked the trouble text file. It was not set as readonly and I was able to edit it using NotePad. Do you have any idea for the possible cause.
Thanks