Éric Moreau,
Cheers,but wanted it for .doc files.Is there any change in the .txt?
Éric Moreau
the save dialog won't actually save your file. It is just a way for your program to query the user for a path and a file name. If your app is specifically asking to save a Word document, you should change the Filter property:
Select Case o.FilterIndex
Case 1
RichTextBox1.SaveFile(o.FileName, _
RichTextBoxStreamType.PlainText)
Case 2
RichTextBox1.SaveFile(o.FileName, _
RichTextBoxStreamType.RichText)
End Select
Éric Moreau
This is my logic because my sample was saving the content of a richtextbox. What you need to use is the o.FileName which contains the full path selected by the user in the dialog box and use it in your own save mechanism
Cheers,but wanted it for .doc files.Is there any change in the .txt?