To show one of the dialog boxes contained in the Common Dialog control, you need to use the following syntax:
CommonDialog1.DialogBox
Where DialogBox is one of the following methods (the methods in italic are not covered in this article):
Method | Action |
ShowSave | Displays the Save Dialog |
ShowOpen | Displays the Open Dialog |
ShowPrinter | Displays the Print Dialog |
ShowColor | Displays the Colour Dialog |
ShowHelp | Displays the Help Dialog |
ShowFont | Displays the Font Dialog |
As you can see, it is very easy to user the Common Dialog Control. However, in order to use the control to its full potential, you need to set a few parameters before showing the dialog. These parameters will be different, depending on which dialog you want to show. The next few sections describe them.
Comments