If the ShowDialog() method returns a DialogResult of "OK", then you
can either use the FileName property of the SaveFileDialog to obtain
the full filename of the file to be saved.. or you can call the
SaveFileDialog.OpenFile() method to obtain a stream and perform your
own file creation logic.

On Jun 11, 4:55 pm, Afewerki <[email protected]> wrote:
> I create one project in VB 9. and I create menustrip in my project And
> I wrote the code to show The Save dialog box that mean the
> savefiledialog the code I write is :-
>
>    savedfiledialog.initialdiroctory="c:\"
>    savedfiledialog.title="Save your File"
>    savedfiledialog.filter="Text File(.txt)|*.txt"
>    savedfiledialog showdialog()
>
> then I run the program. the save dialog box is open but I cant save my
> file
>
> I think I lose one code what is the code?
>
> how I can save my file?
>
> Tell me if you know how.

Reply via email to