Guaranteed Hits to your web site!












Learn Visual Basic 6.0


4. More Exploration of the Visual Basic Toolbox


Quick Example: The Save As Dialog Box

  1. We�ll just modify the Open example a bit. Change the DialogTitle property of the common dialog control to "Save As Example" and set the DefaultExt property equal to "bmp".

  2. In the cmdDisplay_Click procedure, change the method to ShowSave (opens Save As box).

  3. Save the application and run it. Try typing names without extensions and note how .bmp is added to them. Notice you can also select file names by double-clicking them or using the OK button. Again, the Cancel button is not trapped, so it has the same effect as clicking OK.


Pen Line


Counter Hit Counter Hit


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

1