How To Save Text Using RichTextBox!

Ok, in this post. I'll teach you how to save your text using richtextbox.

Ok, first get a SaveFileDialog

Make the Filter of the SaveFileDialog to Text File |*.txt

Ok, next get a RichTextBox and a Button

Double Click the Button and type the codes below



If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
RichTextBox1.SaveFile(SaveFileDialog1.FileName, RichTextBoxStreamType.PlainText)
End If



Post a Comment

Note: Only a member of this blog may post a comment.