Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

Richtextbox.text into .txt file, choose path/filename with DateTimePicker Selection?

$
0
0
I want to save text from a Richtextbox into a .txt file using this code.
Code:

RichTextBox1.SaveFile(" ", RichTextBoxStreamType.PlainText)
But I don't know how to accurately choose destination path
and I would like to make the file name the day, date, and year that you can pick from using
the "DateTimePicker" component.

(My example in code)
Code:

RichTextBox1.SaveFile("C:\a folder i set up in my install to their C: drive & Saturday, October 27th, 2012=filename ", RichTextBoxStreamType.PlainText)
that way when they choose a specific date from the "DateTimePicker" I can write a command to open a .txt file from that date (which will be named that date)

Thank you.

Viewing all articles
Browse latest Browse all 42220

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>