daveofgv
Well-known member
I have a My.Settings file that has a folder path that the user will select.
I need to export text from a RichTextBox to a file, however, I can't seem to figure out how to use My.Settings as the path where the text file will be created.
Right now, I have:
which works fine, however, the My.Settings.destfolder is "C:\Users\mycomputer\Desktop\testfolder\"
I have tried:
but it doesn't work - and also I do not know how to name the text file from the above code.
Can anyone give me some advise?
Thanks in advanced
I need to export text from a RichTextBox to a file, however, I can't seem to figure out how to use My.Settings as the path where the text file will be created.
Right now, I have:
VB.NET:
Me.txtlog.SaveFile("C:\Users\mycomputer\Desktop\New folder\founditems.txt", RichTextBoxStreamType.PlainText)
which works fine, however, the My.Settings.destfolder is "C:\Users\mycomputer\Desktop\testfolder\"
I have tried:
VB.NET:
Me.txtlog.SaveFile(My.Settings.DestinationFolder, RichTextBoxStreamType.PlainText)
but it doesn't work - and also I do not know how to name the text file from the above code.
Can anyone give me some advise?
Thanks in advanced