By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,843 Members | 864 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,843 IT Pros & Developers. It's quick & easy.

Save

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

Nov 17 '05 #2

P: n/a
hi,

you seem to know your c#! i have created a save button and a save as button.
what do i write to get this savefile function?

thanks for being so helpful. my software would never be complete without
your help

--
Alvo von Cossel I of Germany
"Brendan Grant" wrote:
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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.