Hi All!
I have a FileListBox named fleNotes, a RichTextBox called rtbNote.
I have this code:
I want this code to open the file in rtbNote but it doesn't...Code:Private Sub fleNotes_Click() If fleNotes.filename = "" Then MsgBox "No note selected!" Else rtbNote.LoadFile fleNotes.Path & "\" & fleNotes.filename End If End Sub
It was supposed to load a file made with this code that has txtNewNote which when saved, it is the filename.txt, a RichTextBox named rtbNewNote which is the content of the file, and a commandbutton named cmdCreate.
This is the code:
This workd but it makes the content something close to gibberish.Code:Private Sub cmdCreate_Click() rtbNewNote.SaveFile App.Path & "\Notes\" & txtNewNote.Text & ".txt" End Sub
Can anybdy help me???




Reply With Quote