O'Reilly logo

Special Edition Using Microsoft® Visual Basic® .NET by Jeff Spotts, Brian Siler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Saving Files

While opening files is a function of the parent form, saving files is a function of the child forms. Typically, applications have both a Save and a Save As command. The Save command simply replaces an existing copy of a named document with a new copy; the Save As command presents a dialog box to let the user change a document’s filename before saving it.

Complicating matters slightly, if the user slects the Save command for a document that has never been named or saved, the application should treat it as if the user had selected the Save As command in order to let him select a filename and location.

Before writing the code that will take care of saving and naming the files, let’s see how the TextSaved property, which lets us know ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required