JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Save File Dialogs

Save File dialogs are supported by the SaveFileDialog class. These dialogs let the user specify the name of a file to save data to. These dialogs are the same as the standard Save File dialog box used by Windows; you can see a Save File dialog in Figure 9.4 from the SaveFileDialog project on the CD-ROM.

Click To expand
Figure 9.4: A Save As dialog box.

You can use the ShowDialog method to display the dialog box at run time. You can use the FileName property to get the file the user selected, open a file in read-write mode using the OpenFile method, and so on.


You also can set the handy CheckFileExists and CheckPathExists properties to True to check if a specified file or path already exists, and if it should be created otherwise.

Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor