|
|
Title | Save and restore Rich Text File data |
Keywords | Rich Text, RichTextBox, text, file |
Categories | Controls |
|
|
Use the RichTextBox's SaveFile and LoadFile methods to save and restore text in Rich Text format.
|
|
Private Sub cmdSave_Click()
RichTextBox1.SaveFile txtFileName.Text, rtfRTF
RichTextBox1.Text = ""
End Sub
Private Sub cmdLoad_Click()
RichTextBox1.LoadFile txtFileName.Text, rtfRTF
End Sub
|
|
|
|
|
|