Save

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top