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);}
zixing wangPosted Sep 15, 2008, 8:53 AM
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
JohnPosted Sep 12, 2008, 1:46 PM