Common Dialog Control

See AlsoCmnDlgSee       Print Dialog PropertiesCmnDlgProps1        Font Dialog PropertiesCmnDlgProps2
                    Color Dialog PropertiesCmnDlgProps3       File Dialog PropertiesCmnDlgProps4

Description

The common dialog control provides a standard set of dialog boxes for operations such as opening, saving, and printing files or selecting colors and fonts.

Remarks

The common dialog control provides an interface between Visual Basic and the routines in the Windows dynamic-link library COMMDLG.DLL.  To create a common dialog using this control, COMMDLG.DLL must be in your WINDOWS directory.

Before you can use a common dialog box in your application, you must add CMDIALOG.VBX to your project using the Add File command on the File menu.  To automatically include CMDIALOG.VBX in new projects, put it in an AUTOLOAD.MAK file.

You create common dialog boxes for your application by adding the common dialog control to a form and setting its properties.  The type of dialog box displayed is determined by the Action property.  At run time, a dialog box is displayed when the Action property is set to a valid value; at design time, the common dialog control appears as an icon on a form.  This icon cannot be sized.

 

Note   You cannot specify where a common dialog box is displayed.

 

 

Distribution Note   When you create and distribute applications that use the common dialog control, you should install the files CMDIALOG.VBX and COMMDLG.DLL in the customer's Microsoft Windows \SYSTEM subdirectory.  The Visual Basic Setup Kit provides tools to help you write setup programs that install your applications.