4. More Exploration of the Visual Basic Toolbox
Quick Example: The Save As Dialog Box
- 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".
- In the cmdDisplay_Click procedure, change the method to
ShowSave (opens Save As box).
- 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.
Counter Hit
This Homepage is special brought to you by CK Tan