Guaranteed Hits to your web site!












Learn Visual Basic 6.0


4. More Exploration of the Visual Basic Toolbox


Save As Common Dialog Box

  1. The Save As common dialog box provides the user a mechanism for specifying the name of a file to save. We�ll worry about how to save a file in Class 6. The box is displayed by using the ShowSave method. Here�s an example of a Save As common dialog box:


    Save As Common Dialog Box



  2. Save As Dialog Box Properties (mostly the same as those for the Open box):
  3. The Save File box is commonly configured in one of two ways. If a file is being saved for the first time, the Save As configuration, with some default name in the FileName property, is used. In the Save configuration, we assume a file has been previously opened with some name. Hence, when saving the file again, that same name should appear in the FileName property. You�ve seen both configuration types before.

  4. When the user closes the Save File box, you should check the returned file name to make sure it meets the specifications your application requires before you try to save the file. Be especially aware of whether the user changed the file extension to something your application does not allow.


Pen Line


Counter Hit Counter Hit


This Homepage is special brought to you by CK Tan
Hosted by www.Geocities.ws

1