Hi, I recently created a notepad using Visual studio 2019. I added a save button to the notepad. Now how shall I code this:
When the user saves their file for the first time, the user selects their desired location in Windows, and once they save it in a location and continue editing their file, the save button again opens up the "Save as" dialog box. Is there any way that once the user saves their file for the first time and again edits it, it does not open up the "Save as" dialog box. And is there any way that if the user edits their file and clicks the close app button on top right without saving their changes, a dialog box appears saying: "Do you want save changes to your file"?

