From the sounds of it, your only method of saving involves using a
SaveFileDialog to specify where to save when you do so... one way to improve
on this might be to have a SaveFile function into which you pass only the
filename and path that you want to save to.
With this, you might want to have two save buttons/menus, ‘Save’ and ‘Save
As’. When a user selects the Save menu, if you have not saved before, it
stores the filename to a variable and calls the SaveFile function mentioned
above. Later, when the user uses Save again, it sees that the variable
containing the filename has a string in it, so it does not display the
SaveFileDialog, but instead simply saves the file.
‘Save As’ would work similar what I just mentioned, only it would always
prompt for a filename.
Brendan
"Alvo von Cossel I" wrote:
hi,
you can create a file with the savefiledialog. once you have done that and
edit the file in the text editior that i wrote you cannot save the file, you
can only create a new file or replace the old one.
how do i save it again?
--
Alvo von Cossel I of Germany