|
-
Oct 10th, 2005, 05:49 AM
#1
Thread Starter
Lively Member
RichTextBox can't save file
Hi to all,
I'm having an error when trying to save the contents of richtextbox. But putting it a message box it works.
Error is: Unsupported file format .......
RichTextBox1.SaveFile(Application.StartupPath & "\" & Format(Date.Now.ToString("mmddyy hh:mm") & ".DAT"))
Can someone help me on this?
Thank you very much.
-
Oct 10th, 2005, 06:11 AM
#2
Re: RichTextBox can't save file
Maybe you need to specify the file format like this
VB Code:
RichTextBox1.SaveFile(Application.StartupPath & "\" & Format(Date.Now.ToString("mmddyy hh:mm") & ".DAT"),RichTextBoxStreamType.PlainText)
Regards
Jorge
"The dark side clouds everything. Impossible to see the future is."
-
Oct 10th, 2005, 01:28 PM
#3
Re: RichTextBox can't save file
I see "hh:mm", a windows filename cannot have the ":" character in it.....
-
Oct 10th, 2005, 01:43 PM
#4
Re: RichTextBox can't save file
gigemboy is abolutely right how did i miss that well its monday...
"The dark side clouds everything. Impossible to see the future is."
-
Oct 10th, 2005, 02:00 PM
#5
Re: RichTextBox can't save file
lol it happens, Asgorath "Someone's got a case of the Mondays" (from Office Space)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|