I don't understand where the textbox comes into it. How is that
relevant to what your save button does?
In any case, you would have to save the filename the user chooses the
first time, and persist it someplace where you can get at it in
subsequent saves. Then you would bypass the save as dialog thereafter.
Depending on your requirements you might check to make sure the file
exists, too.
Often, though, the presence of the SaveAs dialog would be desirable even
for subsequent saves. Maybe the user wants to save another copy of the
file, for instance, or change the location. You could default the
filename to be the same as last time and then the user just has one
extra mouse click with the dialog if they don't want to change anything.
--Bob
Alvo von Cossel I wrote:
hi,
i have a textbox in a form. when you press a Save button, a savefiledialog
appears. creating ther file works but everytime you click save, the dialog
appears. how do i make the dialog appear once and then only save the file?
thanx