I have looked everywhere and can't find the thing I am looking for. What I want is code for the saveToolStripMenuItem_Click event handler on the "Save" menu (NOT "Save As...") and have my app check to see if:
The current file has already been saved, therefore already has a filename.
The current file has been modified since being opened.
Overwrite (or append, as needed) the existing file without bringing up the "Save As" dialog.
Brings up the "Save As..." menu if the file does not already exist.
My "Save As..." menu already works properly. Everything I have found tells me how to create a "Save As.." dialog, which I already know. Every sample program I have downloaded does not have this functionality.
Any help would be appreciated.
See Question&Answers more detail:os