CommonDialog Control (Color Dialog)

The Color dialog is displayed by using the ShowColor method of the CommonDialog control. The Color dialog box allows the user to select a color from a palette or to create and select a custom color.

To use the Color dialog box, set the properties of the CommonDialog control relating to the Color dialog. Then use the ShowColor method to actually show the dialog and use the Color property to retrieve the selected color.


CommonDialog Control (Color Dialog) Example

The following example displays the Color dialog box and sets the BackColor of the form to the selected color:

Private Sub Command1_Click()

    ' Set Cancel to True

    CommonDialog1.CancelError = True

    On Error GoTo ErrHandler

    'Set the Flags property

    CommonDialog1.Flags = cdlCCRGBInit

    ' Display the Color Dialog box

    CommonDialog1.ShowColor

    ' Set the form's background color to selected color

    Form1.BackColor = CommonDialog1.Color

    Exit Sub

ErrHandler:

    ' User pressed the Cancel button

End Sub


CommonDialog Control (Font Dialog)

The Font dialog is displayed by using the ShowFont method of the CommonDialog control. The Font dialog box allows the user to select a font by specifying a font, size, color, and style.

To use the Font dialog box, set the properties of the CommonDialog control relating to the Font dialog. Then use the ShowFont method to actually show the dialog. Once the user makes selections in the Font dialog box, the following properties contain information about the user's selection:

Property	Determines
Color	The selected color. To use this property, you must first set the Flags property to cdlCFEffects.
FontBold	Whether bold was selected.
FontItalic	Whether italic was selected.
FontStrikethru	Whether strikethrough was selected. To use this property, you must first set the Flags property to cdlCFEffects.
FontUnderline	Whether underline was selected. To use this property, you must first set the Flags property to cdlCFEffects.
FontName	The selected font name.
FontSize	The selected font size.


CommonDialog Control (Font Dialog) Example

The following example displays the Font dialog box and sets the font attributes of a text box to the user's selections:

Private Sub Command1_Click()

    ' Set Cancel to True

    CommonDialog1.CancelError = True

    On Error GoTo ErrHandler

    ' Set the Flags property

    CommonDialog1.Flags = cdlCFEffects Or cdlCFBoth

    ' Display the Font dialog box

    CommonDialog1.ShowFont

    Text1.Font.Name = CommonDialog1.FontName

    Text1.Font.Size = CommonDialog1.FontSize

    Text1.Font.Bold = CommonDialog1.FontBold

    Text1.Font.Italic = CommonDialog1.FontItalic

    Text1.Font.Underline = CommonDialog1.FontUnderline

    Text1.FontStrikethru = CommonDialog1.FontStrikethru

    Text1.ForeColor = CommonDialog1.Color

    Exit Sub

ErrHandler:

    ' User pressed the Cancel button

    Exit Sub

End Sub


CommonDialog Control (Open, Save As Dialogs)

The Open and Save As dialogs are displayed by using the ShowOpen and ShowSave methods of the CommonDialog control.

Both dialog boxes allows the user to specify a drive, directory, filename extension, and a filename. The Save As dialog is identical to the Open dialog in appearance, except for the dialog's caption.

At run time, when the user chooses a file and closes the dialog box, the FileName property is used to get the selected filename.

You can set the Filter property so the dialog displays only certain types of files, such as text files. The Flags property can be used to change various elements on the dialog as well as prompt the user when certain actions may occur, such as overwriting a file.


CommonDialog Control (Open, Save As Dialogs) Example

The following example shows the Open dialog then displays the selected filename in a message box:

Private Sub Command1_Click()

    ' Set CancelError is True

    CommonDialog1.CancelError = True

    On Error GoTo ErrHandler

    ' Set flags

    CommonDialog1.Flags = cdlOFNHideReadOnly

    ' Set filters

    CommonDialog1.Filter = "All Files (*.*)|*.*|Text Files" & _

    "(*.txt)|*.txt|Batch Files (*.bat)|*.bat"

    ' Specify default filter

    CommonDialog1.FilterIndex = 2

    ' Display the Open dialog box

    CommonDialog1.ShowOpen

    ' Display name of selected file

    MsgBox CommonDialog1.filename

    Exit Sub

ErrHandler:

    'User pressed the Cancel button

    Exit Sub

End Sub


CommonDialog Control (Print Dialog)

The Print dialog is displayed by using the ShowPrinter method of the CommonDialog control. The Print dialog box allows the user to specify how output should be printed. The user can specify a range of pages to be printed, a print quality, a number of copies, and so on. This dialog box also contains information about the currently installed printer and allows the user to configure or reinstall a new default printer.

Note   This dialog box does not send data to the printer but lets the user specify how they want data printed. If the PrinterDefault property is True, you can use the Printer object to print data in the format they select.

At run time, when the user makes selections in the Print dialog box, the following properties contain information about the user's selection.

Property	Determines
Copies	The number of copies to print.
FromPage	The page to start printing
ToPage	The page to stop printing
hDC	The device context for the selected printer.


CommonDialog Control (Print Dialog) Example

The following example displays the Print dialog

Private Sub Command1_Click()

    Dim BeginPage, EndPage, NumCopies, i

    ' Set Cancel to True

    CommonDialog1.CancelError = True

    On Error GoTo ErrHandler

    ' Display the Print dialog box

    CommonDialog1.ShowPrinter

    ' Get user-selected values from the dialog box

    BeginPage = CommonDialog1.FromPage

    EndPage = CommonDialog1.ToPage

    NumCopies = CommonDialog1.Copies

    For i = 1 To NumCopies

        ' Put code here to send data to the printer

    Next i

    Exit Sub

ErrHandler:

    ' User pressed the Cancel button

    Exit Sub

End Sub


CommonDialog Control (Help)

The ShowHelp method of the CommonDialog control runs the Windows Help Engine (WINHLP32.EXE) and displays a help file that is set by the HelpFile property.

By setting the HelpCommand property, you can tell the help engine what type of online help you want, such as context sensitive or help on a particular keyword, etc.


CommonDialog Control (Help) Example

The following example displays the table of contents for the Visual Basic help file.

Private Sub Command1_Click()

    ' Set the name of the help file

    CommonDialog1.HelpFile = "VB5.HLP"

    CommonDialog1.HelpCommand = cdlHelpContents

    ' Display Visual Basic Help contents topic.

    CommonDialog1.ShowHelp

End Sub


CommonDialog Control

The CommonDialog control provides a standard set of dialog boxes for operations such as opening and saving files, setting print options, and selecting colors and fonts. The control also has the ability to display help by running the Windows Help engine.

Syntax

CommonDialog

Remarks

The CommonDialog control provides an interface between Visual Basic and the routines in the Microsoft Windows dynamic-link library Commdlg.dll. To create a dialog box using this control, Commdlg.dll must be in your Microsoft Windows SYSTEM directory.

You use the CommonDialog control in your application by adding it to a form and setting its properties. The dialog displayed by the control is determined by the methods of the control. At run time, a dialog box is displayed or the help engine is executed, when the appropriate method is invoked; at design time, the CommonDialog control is displayed as an icon on a form. This icon can't be sized.

The CommonDialog control can display the following dialogs using the specified method.

Method	Dialog Displayed
ShowOpen	Show Open Dialog Box
ShowSave	Show Save As Dialog Box
ShowColor	Show Color Dialog Box
ShowFont	Show Font Dialog Box
ShowPrinter	Show Print or Print Options Dialog Box
ShowHelp	Invokes the Windows Help Engine
The CommonDialog control automatically provides context sensitive help on the interface of the dialog boxes by clicking:

•	The What's This help button in the title bar then clicking the item for which you want more information.

•	The right mouse button over the item for which you want more information then selecting the What's This command in the displayed context menu.

The operating system provides the text shown in the Windows 95 Help popup. You can also display a Help button on the dialog boxes with the CommonDialog control by setting the Flags property, however, you must provide the help topics in this situation.

Note   There is no way to specify where a dialog box is displayed.

For More Information   To see help topics for each dialog, click on See Also.


Action Property (CommonDialog)

Returns or sets the type of dialog box to be displayed. Not available at design time.

Note   The Action property is included for compatibility with earlier versions of Visual Basic. For additional functionality, use the following new methods: ShowColor, ShowFont, ShowHelp, ShowOpen, ShowPrinter, and ShowSave.

Syntax

object.Action [= value]

The Action property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
value	A numeric expression specifying the type of dialog box displayed, as described in Settings.
Settings

The settings for value are:

Setting	Description
0	No Action.
1	Displays Open dialog box.
2	Displays Save As dialog box.
3	Displays Color dialog box.
4	Displays Font dialog box.
5	Displays Printer dialog box.
6	Runs WINHLP32.EXE.
Data Type

Integer


CancelError Property

Returns or sets a value indicating whether an error is generated when the user chooses the Cancel button.

Syntax

object.CancelError [= boolean]

The CancelError property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
boolean	A Boolean expression indicating whether an error is generated, as described in Settings.
Settings

The settings for boolean are:

Setting	Description
True	An error is generated.
False	(Default) No error is generated.
Remarks

When this property is set to True, error number 32755 (cdlCancel) occurs whenever the user chooses the Cancel button.

Data Type

Boolean


Color Property

Returns or sets the selected color.

Syntax

object.Color [= number]

The Color property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
number	A numeric expression that specifies the color.
Settings

The settings for number are:

Setting	Description
Normal RGB colors	Colors set with the RGB or QBColor functions in code.
System default colors	Colors specified with the system color constants in the Visual Basic (VB) object library in the Object Browser.  The Microsoft Windows operating environment substitutes the user's choices, as specified by the user's Control Panel settings.
Remarks

For this property to return a color in a Color dialog box, the cdlCCRGBInit flag must be set. In the Font dialog box, the cdlCFEffects flag must be set.

Data Type

Long


DefaultExt Property

Returns or sets the default filename extension for the dialog box.

Syntax

object.DefaultExt [= string]

The DefaultExt property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
string	A string expression specifying the file extension.
Remarks

Use this property to specify a default filename extension, such as .txt or .doc.

When a file with no extension is saved, the extension specified by this property is automatically appended to the filename.

Data Type

String


DialogTitle Property

Returns or sets the string displayed in the title bar of the dialog box.

Syntax

object.DialogTitle [= title]

The DialogTitle property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
title	A string expression specifying the name of the dialog box.
Remarks

Use this property to display the name of the dialog box in the title bar.

Note   The CommonDialog control ignores the setting of the DialogTitle property when displaying the Color, Font, or Print dialog boxes.

The default title for an Open dialog box is Open; the default title for a Save As dialog box is Save As.

Data Type

String


FileTitle Property

Returns the name (without the path) of the file to open or save.

Syntax

object.FileTitle

The object placeholder is an object expression that evaluates to an object in the Applies To list.

Remarks

When the user selects a file and clicks OK in the File dialog box, the FileTitle property takes a value that can then be used to open or save the selected file.

Note   If the cdlOFNNoValidate flag is set, the FileTitle property won't return a value.

Data Type

String


Filter Property (CommonDialog)

Returns or sets the filters that are displayed in the Type list box of a dialog box.

Syntax

object.Filter [= description1 |filter1 |description2 |filter2...]

The Filter property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
description	A string expression describing the type of file.
filter	A string expression specifying the filename extension.
Remarks

A filter specifies the type of files that are displayed in the dialog box's file list box. For example, selecting the filter *.txt displays all text files.

Use this property to provide the user with a list of filters that can be selected when the dialog box is displayed.

Use the pipe ( | ) symbol (ASCII 124) to separate the description and filter values. Don't include spaces before or after the pipe symbol, because these spaces will be displayed with the description and filter values.

The following code shows an example of a filter that enables the user to select text files or graphic files that include bitmaps and icons:

Text (*.txt)|*.txt|Pictures (*.bmp;*.ico)|*.bmp;*.ico

When you specify more than one filter for a dialog box, use the FilterIndex property to determine which filter is displayed as the default.

Data Type

String


FilterIndex Property

Returns or sets a default filter for an Open or Save As dialog box.

Syntax

object.FilterIndex [= number]

The FilterIndex property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
number	A numeric expression specifying a default filter.
Remarks

This property specifies the default filter when you use the Filter property to specify filters for an Open or Save As dialog box.

The index for the first defined filter is 1.

Data Type

Integer


Flags Property (All Common Dialogs)

Flags Property (Color Dialog)

Flags Property (Font Dialog)

Flags Property (Open, Save As Dialogs)

Flags Property (Print Dialog)


Flags Property (Color Dialog)

Returns or sets the options for a Color dialog box.

Syntax

object.Flags [= value]

The Flags property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
value	A constant or value specifying the options for a Color dialog box, as described in Settings.
Settings

The settings for value are:

Constant	Value	Description
cdCClFullOpen	&H2	Entire dialog box is displayed, including the Define Custom Colors section.
cdlCCHelpButton	&H8	Causes the dialog box to display a Help button.
cdlCCPreventFullOpen	&H4	Disables the Define Custom Colors command button and prevents the user from defining custom colors.
cdlCCRGBInit	&H1	Sets the initial color value for the dialog box.
Remarks

These constants are listed in the Microsoft CommonDialog Control (MSComDlg) object library in the Object Browser.

You can also define selected flags. Use the Const keyword in the Declarations section of the startup form to define the flags you want to use.

You can set more than one flag for a dialog box using the Or operator. For example:

CommonDialog1.Flags = &H10& Or &H200&

Adding the desired constant values produces the same results. The following is equivalent to the preceding example:

CommonDialog1.Flags = &H210&

Data Type

Long


Flags Property (Open, Save As Dialogs)

Returns or sets the options for the Open and Save As dialog boxes.

Syntax

object.Flags [= value]

The Flags property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
value	A constant or value specifying the options for the Open and Save As dialog boxes, as described in Settings.
Settings

The settings for value are:

Constant	Value	Description
cdlOFNAllowMultiselect	&H200	Specifies that the File Name list box allows multiple selections. The user can select more than one file at run time by pressing the SHIFT key and using the UP ARROW and DOWN ARROW keys to select the desired files. When this is done, the FileName property returns a string containing the names of all selected files. The names in the string are delimited by spaces.
cdlOFNCreatePrompt	&H2000	Specifies that the dialog box prompts the user to create a file that doesn't currently exist. This flag automatically sets the cdlOFNPathMustExist and cdlOFNFileMustExist flags.
cdlOFNExplorer	&H80000	Use the Explorer-like Open A File dialog box template. Works with Windows 95 and Windows NT 4.0.
cdlOFNExtensionDifferent	&H400	Indicates that the extension of the returned filename is different from the extension specified by the DefaultExt property. This flag isn't set if the DefaultExt property is Null, if the extensions match, or if the file has no extension. This flag value can be checked upon closing the dialog box.
cdlOFNFileMustExist	&H1000	Specifies that the user can enter only names of existing files in the File Name text box. If this flag is set and the user enters an invalid filename, a warning is displayed. This flag automatically sets the cdlOFNPathMustExist flag.
cdlOFNHelpButton	&H10	Causes the dialog box to display the Help button.
cdlOFNHideReadOnly	&H4	Hides the Read Only check box.
cdlOFNLongNames	&H200000	Use long filenames.
cdlOFNNoChangeDir	&H8	Forces the dialog box to set the current directory to what it was when the dialog box was opened.
cdlOFNNoDereferenceLinks	&H100000	Do not dereference shell links (also known as shortcuts). By default, choosing a shell link causes it to be dereferenced by the shell.
cdlOFNNoLongNames	&H40000	No long file names.
cdlOFNNoReadOnlyReturn	&H8000	Specifies that the returned file won't have the Read Only attribute set and won't be in a write-protected directory.
cdlOFNNoValidate	&H100	Specifies that the common dialog box allows invalid characters in the returned filename.
cdlOFNOverwritePrompt	&H2	Causes the Save As dialog box to generate a message box if the selected file already exists.  The user must confirm whether to overwrite the file.
cdlOFNPathMustExist	&H800	Specifies that the user can enter only valid paths. If this flag is set and the user enters an invalid path, a warning message is displayed.
cdlOFNReadOnly	&H1	Causes the Read Only check box to be initially checked when the dialog box is created. This flag also indicates the state of the Read Only check box when the dialog box is closed.
cdlOFNShareAware	&H4000	Specifies that sharing violation errors will be ignored.
Remarks

The cdlOFNExplorer and cdlOFNNoDereferenceLinks flags work only under Windows 95 and Windows NT 4.0. Multiselect common dialogs under Windows 95 using cdlOFNExplorer use null characters for delimiters, but under previous versions of Windows NT without the Windows 95 shell, the multiselect uses spaces for delimiters (thus no support for long filenames).

Under both Windows NT 4.0 and Windows 95 if you do not choose the cdlOFNAllowMultiselect flag, then both the cdlOFNExplorer and cdlOFNLongNames flags have no effect and are essentially the default.

If you use the cdlOFNAllowMultiselect flag by itself under both Windows NT 4.0 and Windows 95, you will not have support for long filenames. This is because the multiple filenames come back space delimited and long filenames could include spaces. You cannot avoid this behavior if you have Windows NT 3.5. If you use cdlOFNAllowMultiselect, you cannot see long filenames. If you add the cdlOFNExplorer flag under Windows 95, you will be able to both multiselect and see long filenames. But the filenames come back null character delimited and not space delimited. Thus, using cdlOFNAllowMultiselect with cdlOFNExplorer will require different parsing of the filename result under Windows 95 and Windows NT 4.0.

These constants are listed in the Microsoft CommonDialog Control (MSComDlg) object library in the Object Browser.

You can also define selected flags. Use the Const keyword in the Declarations section of the startup form to define the flags you want to use. For example:

Const ReadOnly  = &H00000001&

Const Effects    = &H00000100&

CommonDialog1.Flags = &H10& Or &H200&

Adding the desired constant values produces the same results. The following is equivalent to the preceding example:

CommonDialog1.Flags = &H210&

Data Type

Long


Flags Property (Font Dialog)

Returns or sets the options for the Font dialog box.

Syntax

object.Flags [= value]

The Flags property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
value	A constant or value specifying the options for a Font dialog box, as described in Settings.
Settings

The settings for value are:

Constant	Value	Description
cdlCFANSIOnly	&H400	Specifies that the dialog box allows only a selection of the fonts that use the Windows character set. If this flag is set, the user won't be able to select a font that contains only symbols.
cdlCFApply	&H200	Enables the Apply button on the dialog box.
cdlCFBoth	&H3	Causes the dialog box to list the available printer and screen fonts. The hDC property identifies the device context associated with the printer.
cdlCFEffects	&H100	Specifies that the dialog box enables strikethrough, underline, and color effects.
cdlCFFixedPitchOnly	&H4000	Specifies that the dialog box selects only fixed-pitch fonts.
cdlCFForceFontExist	&H10000	Specifies that an error message box is displayed if the user attempts to select a font or style that doesn't exist.
cdlCFHelpButton	&H4	Causes the dialog box to display a Help button.
cdlCFLimitSize	&H2000	Specifies that the dialog box selects only font sizes within the range specified by the Min and Max properties.
cdlCFNoFaceSel	&H80000	No font name selected.
cdlCFNoSimulations	&H1000	Specifies that the dialog box doesn't allow graphic device interface (GDI) font simulations.
cdlCFNoSizeSel	&H200000	No font size selected.
cdlCFNoStyleSel	&H100000	No style was selected.
cdlCFNoVectorFonts	&H800	Specifies that the dialog box doesn't allow vector-font selections.
cdlCFPrinterFonts	&H2	Causes the dialog box to list only the fonts supported by the printer, specified by the hDC property.
cdlCFScalableOnly	&H20000	Specifies that the dialog box allows only the selection of fonts that can be scaled.
cdlCFScreenFonts	&H1	Causes the dialog box to list only the screen fonts supported by the system.
cdlCFTTOnly	&H40000	Specifies that the dialog box allows only the selection of TrueType fonts.
cdlCFWYSIWYG	&H8000	Specifies that the dialog box allows only the selection of fonts that are available on both the printer and on screen. If this flag is set, the cdlCFBoth and cdlCFScalableOnly flags should also be set.
Remarks

These constants are listed in the Microsoft CommonDialog Control (MSComDlg) object library in the Object Browser.

You can also define selected flags. Use the Const keyword in the Declarations section of the startup form to define the flags you want to use. For example:

Const ReadOnly  = &H00000001&

Const Effects    = &H00000100&

You can set more than one flag for a dialog box using the Or operator. For example:

CommonDialog1.Flags = &H10& Or &H200&

Adding the desired constant values produces the same results. The following is equivalent to the preceding example:

CommonDialog1.Flags = &H210&

Note   You must set the Flags property to cdlCFScreenFonts, cdlCFPrinterFonts, or cdlCFBoth before displaying the Fonts dialog box. Otherwise, the error No Fonts Exist occurs.

Data Type

Long


Flags Property (Print Dialog)

Returns or sets the options for the Print dialog box.

Syntax

object.Flags [= value]

The Flags property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
value	A constant or value specifying the options for the Print dialog box, as described in Settings.
Settings

The settings for value are:

Constant	Value	Description
cdlPDAllPages	&H0	Returns or sets the state of the All Pages option button.
cdlPDCollate	&H10	Returns or sets the state of the Collate check box.
cdlPDDisablePrintToFile	&H80000	Disables the Print To File check box.
cdlPDHelpButton	&H800	Causes the dialog box to display the Help button.
cdlPDHidePrintToFile	&H100000	Hides the Print To File check box.
cdlPDNoPageNums	&H8	Disables the Pages option button and the associated edit control.
cdlPDNoSelection	&H4	Disables the Selection option button.
cdlPDNoWarning	&H80	Prevents a warning message from being displayed when there is no default printer.
cdlPDPageNums	&H2	Returns or sets the state of the Pages option button.
cdlPDPrintSetup	&H40	Causes the system to display the Print Setup dialog box rather than the Print dialog box.
cdlPDPrintToFile	&H20	Returns or sets the state of the Print To File check box.
cdlPDReturnDC	&H100	Returns a device context for the printer selection made in the dialog box.  The device context is returned in the dialog box's hDC property.
cdlPDReturnDefault	&H400	Returns default printer name.
cdlPDReturnIC	&H200	Returns an information context for the printer selection made in the dialog box. An information context provides a fast way to get information about the device without creating a device context. The information context is returned in the dialog box's hDC property.
cdlPDSelection	&H1	Returns or sets the state of the Selection option button. If neither cdlPDPageNums nor cdlPDSelection is specified, the All option button is in the selected state.
cdlPDUseDevModeCopies	&H40000	If a printer driver doesn't support multiple copies, setting this flag disables the Number of copies spinner control in the Print dialog. If a driver does support multiple copies, setting this flag indicates that the dialog box stores the requested number of copies in the Copies property.
Remarks

These constants are listed in the Microsoft CommonDialog Control (MSComDlg) object library in the Object Browser.

You can also define selected flags. Use the Const keyword in the Declarations section of the startup form to define the flags you want to use. For example:

Const ReadOnly  = &H00000001&

Const Effects    = &H00000100&

You can set more than one flag for a dialog box using the Or operator. For example:

CommonDialog1.Flags = &H10& Or &H200&

Adding the desired constant values produces the same results. The following is equivalent to the preceding example:

CommonDialog1.Flags = &H210&

Data Type

Long


FromPage, ToPage Properties

Return or set the values for the From and To text boxes of the Print dialog.

Syntax

object.FromPage [= number]

object.ToPage [= number]

The FromPage and ToPage property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
number	A numeric expression that specifies the first and last pages to be printed.
Remarks

These properties are valid only when the cdlPDPageNums flag has been set.

Data Type

Integer


HelpCommand Property

Returns or sets the type of online Help requested.

Syntax

object.HelpCommand [= value]

The HelpCommand property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
value	A constant or value specifying the type of Help, as described in Settings.
Settings

The settings for value are:

Constant	Value	Description
cdlHelpCommand	&H102&	Executes a Help macro.
cdlHelpContents	&H3&	Displays the Help contents topic as defined by the Contents option in the [OPTION] section of the .hpj file.
cdlHelpContext	&H1&	Displays Help for a particular context. When using this setting, you must also specify a context using the HelpContext property.
cdlHelpContextPopup	&H8&	Displays in a pop-up window a particular Help topic identified by a context number defined in the [MAP] section of the .hpj file.
cdlHelpForceFile	&H9&	Ensures WinHelp displays the correct Help file. If the correct Help file is currently displayed, no action occurs. If the incorrect Help file is displayed, WinHelp opens the correct file.
cdlHelpHelpOnHelp	&H4&	Displays Help for using the Help application itself.
cdlHelpIndex	&H3&	Displays the index of the specified Help file. An application should use this value only for a Help file with a single index.
cdlHelpKey	&H101&	Displays Help for a particular keyword. When using this setting, you must also specify a keyword using the HelpKey property.
cdlHelpPartialKey	&H105&	Displays the topic found in the keyword list that matches the keyword passed in the dwData parameter if there is one exact match. If more than one match exists, the Search dialog box with the topics found listed in the Go To list box is displayed. If no match exists, the Search dialog box is displayed. To bring up the Search dialog box without passing a keyword, use a long pointer to an empty string.
cdlHelpQuit	&H2&	Notifies the Help application that the specified Help file is no longer in use.
cdlHelpSetContents	&H5&	Determines which contents topic is displayed when a user presses the F1 key.
cdlHelpSetIndex	&H5&	Sets the context specified by the HelpContext property as the current index for the Help file specified by the HelpFile property. This index remains current until the user accesses a different Help file. Use this value only for Help files with more than one index.
Remarks

The values for the HelpCommand property constants are listed in the Microsoft CommonDialog Control (MSComDlg) object library in the Object Browser.

Data Type

Integer


HelpContext Property (CommonDialog)

Returns or sets the context ID of the requested Help topic.

Syntax

object.HelpContext [= value]

The HelpContext property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
value	A string expression specifying the context ID of the requested Help topic.
Remarks

Use this property with the HelpCommand property (set HelpCommand = cdlHelpContext) to specify the Help topic to be displayed.

Data Type

String


HelpKey Property

Returns or sets the keyword that identifies the requested Help topic.

Syntax

object.HelpKey [= string]

The HelpKey property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
string	A string expression specifying the keyword that identifies the Help topic.
Remarks

Use this property with the HelpCommand property (set HelpCommand = cdlHelpKey) to specify the Help topic to be displayed.

Data Type

String


InitDir Property

Returns or sets the initial file directory.

Syntax

object.InitDir [= string]

The InitDir property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
string	A string expression specifying the initial file directory.
Remarks

This property is used to specify the initial directory for an Open or Save As dialog. If this property isn't specified, the current directory is used.

Data Type

String


Max, Min Properties (CommonDialog)

You can set the Max and Min properties for the following:

•	Font dialog box — return or set the smallest and largest font sizes displayed in the Size list box.

•	Print dialog box — return or set the minimum and maximum allowed values for the print range.

Syntax

object.Min [= points]

object.Max [= points]

object.Min [= number ]

object.Max [= number ]

The Max and Min property syntaxes have these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
points	A numeric expression specifying the smallest and largest font sizes.
number	A numeric expression specifying the minimum and maximum page numbers.
Remarks

•	With the Font dialog box, the cdlCFLimitSize flag must be set before using these properties.

•	With the Print dialog box, the Min property determines the smallest number the user can specify in the From text box. The Max property determines the largest number the user can specify in the To text box.

Data Type

Integer


MaxFileSize Property

Returns or sets the maximum size of the filename opened using the CommonDialog control.

Syntax

object.MaxFileSize [= value]

The MaxFileSize property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
value	An integer specifying the maximum size of the filename in bytes. The range for this property is 1 — 32K. The default is 256.
Remarks

The MaxFileSize property allocates memory to store the actual names of the selected file or files. When using the cdlOFNAllowMultiselect flag, you may want to increase the size of the MaxFileSize property to allow enough memory for the selected file names.

Data Type

Integer


PrinterDefault Property

Returns or sets an option that determines if the user's selections in the Print dialog box are used to change the system's default printer settings.

Syntax

object.PrinterDefault [= value]

The PrinterDefault property syntax has these parts:

Part	Description
object	An object expression that evaluates to an object in the Applies To list.
value	A Boolean expression specifying whether the user's selections are used to change the system's default printer settings, as described in Settings.
Settings

The settings for value are:

Setting	Description
True	Any selections the user makes in the Setup portion of the Print dialog box (printer selection, orientation, and so on) are used to change the printer settings in the user's WIN.INI file. (On the Windows NT operating system, this information is stored in the Registry.)
False	User's selections can't be used to change the system's default printer settings.
Remarks

When PrinterDefault is True, you can write code to print directly to the Visual Basic Printer object. Otherwise, you must use the graphic device interface (GDI) calls to print to the printer specified by the control's hDC property.

Note   If you've previously printed to the Printer object, make sure you've ended that print job using Printer.EndDoc. This releases the hDC associated with that printer. You will get a new hDC for the default printer the next time you print to the Printer object. If you don't do this, it's possible for the user to select a new printer while the Printer object contains a handle to the old printer.

Data Type

Boolean


ShowColor Method

Displays the CommonDialog control's Color dialog box.

Syntax

object.ShowColor

The object placeholder represents an object expression that evaluates to an object in the Applies To list.


ShowFont Method

Displays the CommonDialog control's Font dialog box.

Syntax

object.ShowFont

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Remarks

Before you use the ShowFont method, you must set the Flags property of the CommonDialog control to one of three constants or values: cdlCFBoth or &H3, cdlCFPrinterFonts or &H2, or cdlCFScreenFonts or &H1.  If you don't set Flags, a message box is displayed advising you that "There are no fonts installed.", and a run-time error occurs.


ShowHelp Method

Runs Winhlp32.exe and displays the Help file you specify.

Syntax

object.ShowHelp

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Remarks

Before you use the ShowHelp method, you must set the HelpFile and HelpCommand properties of the CommonDialog control to one of their appropriate constants or values. Otherwise, Winhlp32.exe doesn't display the Help file.


ShowOpen Method

Displays the CommonDialog control's Open dialog box.

Syntax

object.ShowOpen

The object placeholder represents an object expression that evaluates to an object in the Applies To list.


ShowPrinter Method

Displays the CommonDialog control's Printer dialog box.

Syntax

object.ShowPrinter

The object placeholder represents an object expression that evaluates to an object in the Applies To list.


ShowSave Method

Displays the CommonDialog control's Save As dialog box.

Syntax

object.ShowSave

The object placeholder represents an object expression that evaluates to an object in the Applies To list.


ShowColor, ShowFont, ShowHelp, ShowOpen, ShowPrinter, ShowSave Methods Example

This example uses the CommonDialog control and the ShowColor, ShowFont, ShowHelp, ShowOpen, ShowPrinter, and ShowSave methods to display the common dialog boxes. To try this example, paste the code into the Declarations section of a form with CommandButton, OptionButton (set the option button's Index property to 0), and CommonDialog controls. Press F5 and select the option button for the common dialog box you want and choose the command button.

Private Sub Form_Paint ()

Static FlagFormPainted As Integer

' When form is painting for first time,

If FlagFormPainted <> True Then

For i = 1 To 5

Load Option1(i)	' Add five option buttons to array.

Option1(i).Top = Option1(i - 1).Top + 350

Option1(i).Visible = True

Next i

Option1(0).Caption = "Open"	' Put caption on each option button.

Option1(1).Caption = "Save"

Option1(2).Caption = "Color"

Option1(3).Caption = "Font"

 	Option1(4).Caption = "Printer"

Option1(5).Caption = "Help"

Command1.Caption = "Show Dlg"	' Label command button.

FlagFormPainted = True	' Form is done painting.

End If

End Sub

Private Sub Command1_Click ()

If Option1(0).Value Then	' If Open option button selected,

CommonDialog1.ShowOpen	' display Open common dialog box.

ElseIf Option1(1).Value Then	' Or,

CommonDialog1.ShowSave	' display Save common dialog box.

ElseIf Option1(2).Value Then	' Or,

CommonDialog1.ShowColor	' display Color common dialog box.

ElseIf Option1(3).Value Then	' Or,

CommonDialog1.Flags = cdlCFBoth	' Flags property must be set

' to cdlCFBoth, 	' cdlCFPrinterFonts,

' or cdlCFScreenFonts before 	' using ShowFont method.

CommonDialog1.ShowFont	' Display Font common dialog box.

ElseIf Option1(4).Value Then	' Or,

CommonDialog1.ShowPrinter	' display Printer common dialog box.

ElseIf Option1(5).Value Then	' Or,

CommonDialog1.HelpFile = "VB5.HLP"

CommonDialog1.HelpCommand = cdlHelpContents

CommonDialog1.ShowHelp	' Display Visual Basic Help contents topic.

End If

End Sub


hDC Property
hDC Property (CommonDialogDummy Topicl)


CommonDialog Control Constants

File Open/Save Dialog Box Flags

Constant	Value	Description
cdlOFNAllowMultiselect	&H200	Specifies that the File Name list box allows multiple selections. The user can select more than one file at run time by pressing the SHIFT key and using the UP ARROW and DOWN ARROW keys to select the desired files. When this is done, the FileName property returns a string containing the names of all selected files. The names in the string are delimited by spaces.
cdlOFNCreatePrompt	&H2000	Specifies that the dialog box prompts the user to create a file that doesn't currently exist. This flag automatically sets the cdlOFNPathMustExist and cdlOFNFileMustExist flags.
cdlOFNExplorer	&H80000	Use the Explorer-like Open A File dialog box template. Common dialogs that use this flag do not work under Windows NT using the Windows 95 shell.
cdlOFNExtensionDifferent	&H400	Indicates that the extension of the returned filename is different from the extension specified by the DefaultExt property. This flag isn't set if the DefaultExt property is Null, if the extensions match, or if the file has no extension. This flag value can be checked upon closing the dialog box.
cdlOFNFileMustExist	&H1000	Specifies that the user can enter only names of existing files in the File Name text box. If this flag is set and the user enters an invalid filename, a warning is displayed. This flag automatically sets the cdlOFNPathMustExist flag.
cdlOFNHelpButton	&H10	Causes the dialog box to display the Help button.
cdlOFNHideReadOnly	&H4	Hides the Read Only check box.
cdlOFNLongNames	&H200000	Use long filenames.
cdlOFNNoChangeDir	&H8	Forces the dialog box to set the current directory to what it was when the dialog box was opened.
cdlOFNNoDereferenceLinks	&H100000	Do not dereference shell links (also known as shortcuts). By default, choosing a shell link causes it to be dereferenced by the shell.
cdlOFNNoLongNames	&H40000	Do not use long file names.
cdlOFNNoReadOnlyReturn	&H8000	Specifies that the returned file won't have the Read Only attribute set and won't be in a write-protected directory.
cdlOFNNoValidate	&H100	Specifies that the common dialog box allows invalid characters in the returned filename.
cdlOFNOverwritePrompt	&H2	Causes the Save As dialog box to generate a message box if the selected file already exists. The user must confirm whether to overwrite the file.
cdlOFNPathMustExist	&H800	Specifies that the user can enter only valid paths. If this flag is set and the user enters an invalid path, a warning message is displayed.
cdlOFNReadOnly	&H1	Causes the Read Only check box to be initially checked when the dialog box is created. This flag also indicates the state of the Read Only check box when the dialog box is closed.
cdlOFNShareAware	&H4000	Specifies that sharing violation errors will be ignored.
Color Dialog Box Flags

Constant	Value	Description
cdCClFullOpen	&H2	Entire dialog box is displayed, including the Define Custom Colors section
cdlCCShowHelp	&H8	Causes the dialog box to display a Help button
cdlCCPreventFullOpen	&H4	Disables the Define Custom Colors command button and prevents the user from defining custom colors
cdlCCRGBInit	&H1	Sets the initial color value for the dialog box
Fonts Dialog Box Flags

Constant	Value	Description
cdlCFANSIOnly	&H400	Specifies that the dialog box allows only a selection of the fonts that use the Windows character set. If this flag is set, the user won't be able to select a font that contains only symbols.
cdlCFApply	&H200	Enables the Apply button on the dialog box.
cdlCFBoth	&H3	Causes the dialog box to list the available printer and screen fonts. The hDC property identifies the device context associated with the printer.
cdlCFEffects	&H100	Specifies that the dialog box enables strikethrough, underline, and color effects.
cdlCFFixedPitchOnly	&H4000	Specifies that the dialog box selects only fixed-pitch fonts.
cdlCFForceFontExist	&H10000	Specifies that an error message box is displayed if the user attempts to select a font or style that doesn't exist.
cdlCFHelpButton	&H4	Causes the dialog box to display a Help button.
cdlCFLimitSize	&H2000	Specifies that the dialog box selects only font sizes within the range specified by the Min and Max properties.
cdlCFNoFaceSel	&H80000	No font name selected.
cdlCFNoSimulations	&H1000	Specifies that the dialog box doesn't allow graphic device interface (GDI) font simulations.
cdlCFNoSizeSel	&H200000	No font size selected.
cdlCFNoStyleSel	&H100000
cdlCFNoVectorFonts	&H800	Specifies that the dialog box doesn't allow vector-font selections.
cdlCFPrinterFonts	&H2	Causes the dialog box to list only the fonts supported by the printer, specified by the hDC property.
cdlCFScalableOnly	&H20000	Specifies that the dialog box allows only the selection of fonts that can be scaled.
cdlCFScreenFonts	&H1	Causes the dialog box to list only the screen fonts supported by the system.
cdlCFTTOnly	&H40000	Specifies that the dialog box allows only the selection of TrueType fonts.
cdlCFWYSIWYG	&H8000	Specifies that the dialog box allows only the selection of fonts that are available on both the printer and on screen. If this flag is set, the cdlCFBoth and cdlCFScalableOnly flags should also be set.
Printer Dialog Box Flags

Constant	Value	Description
cdlPDAllPages	&H0	Returns or sets the state of the All Pages option button.
cdlPDCollate	&H10	Returns or sets the state of the Collate check box.
cdlPDDisablePrintToFile	&H80000	Disables the Print To File check box.
cdlPDHelpButton	&H800	Causes the dialog box to display the Help button.
cdlPDHidePrintToFile	&H100000	Hides the Print To File check box.
cdlPDNoPageNums	&H8	Disables the Pages option button and the associated edit control.
cdlPDNoSelection	&H4	Disables the Selection option button.
cdlPDNoWarning	&H80	Prevents a warning message from being displayed when there is no default printer.
cdlPDPageNums	&H2	Returns or sets the state of the Pages option button.
cdlPDPrintSetup	&H40	Causes the system to display the Print Setup dialog box rather than the Print dialog box.
cdlPDPrintToFile	&H20	Returns or sets the state of the Print To File check box.
cdlPDReturnDC	&H100	Returns a device context for the printer selection made in the dialog box. The device context is returned in the dialog box's hDC property.
cdlPDReturnDefault	&H400	Returns default printer name.
cdlPDReturnIC	&H200	Returns an information context for the printer selection made in the dialog box. An information context provides a fast way to get information about the device without creating a device context. The information context is returned in the dialog box's hDC property.
cdlPDSelection	&H1	Returns or sets the state of the Selection option button. If neither cdlPDPageNums nor cdlPDSelection is specified, the All option button is in the selected state.
cdlPDUseDevModeCopies	&H40000	If a printer driver doesn't support multiple copies, setting this flag disables the copies edit control. If a driver does support multiple copies, setting this flag indicates that the dialog box stores the requested number of copies in the Copies property.
Help Constants

Constant	Value	Description
cdlHelpCommandHelp	&H102	Displays Help for a particular command
cdlHelpContents	&H3	Displays the contents topic in the current Help file
cdlHelpContext	&H1	Displays Help for a particular topic
cdlHelpContextPopup	&H8	Displays a topic identified by a context number
cdlHelpForceFile	&H9	Creates a Help file that displays text in only one font
cdlHelpHelpOnHelp	&H4	Displays Help for using the Help application itself
cdlHelpIndex	&H3	Displays the index of the specified Help file
cdlHelpKey	&H101	Displays Help for a particular keyword
cdlHelpPartialKey	&H105	Calls the search engine in Windows Help
cdlHelpQuit	&H2	Notifies the Help application that the specified Help file is no longer in use
cdlHelpSetContents	&H5	Designates a specific topic as the contents topic
cdlHelpSetIndex	&H5	Sets the current index for multi-index Help


CommonDialog Error Constants

Constant	Value	Description
cdlAlloc	&H&H7FF0 &	Couldn't allocate memory for FileName or Filter property
cdlCancel	&H&H7FF3 &	Cancel was selected
cdlDialogFailure	&H&H8000 &	The function failed to load the dialog box
cdlFindResFailure	&H&H7FF9 &	The function failed to load a specified resource
cdlHelp	&H&H7FEF &	Call to Windows Help failed
cdlInitialization	&H&H7FFD &	The function failed during initialization
cdlLoadResFailure	&H&H7FF8 &	The function failed to load a specified string
cdlLockResFailure	&H&H7FF7 &	The function failed to lock a specified resource
cdlMemAllocFailure	&H&H7FF6 &	The function was unable to allocate memory for internal data structures
cdlMemLockFailure	&H&H7FF5 &	The function was unable to lock the memory associated with a handle
cdlNoFonts	&H&H5FFE &	No fonts exist
cdlBufferTooSmall	&H&H4FFC &	The buffer at which the member lpstrFile points is too small
cdlInvalidFileName	&H4&H4FFD &	Filename is invalid
cdlSubclassFailure	&H&H4FFE &	An attempt to subclass a list box failed due to insufficient memory
cdlCreateICFailure	&H&H6FF5 &	The PrintDlg function failed when it attempted to create an information context
cdlDndmMismatch	&H&H6FF6 &	Data in the DevMode and DevNames data structures describe two different printers
cdlGetDevModeFail	&H&H6FFA &	The printer device driver failed to initialize a DevMode data structure
cdlInitFailure	&H&H6FF9 &	The PrintDlg function failed during initialization
cdlLoadDrvFailure	&H&H6FFB &	The PrintDlg function failed to load the specified printer's device driver
cdlLoadStrFailure	&H7FFA	The function failed to load a specified string.
cdlNoDefaultPrn	&H&H6FF7 &	A default printer doesn't exist
cdlNoDevices	&H&H6FF8 &	No printer device drivers were found
cdlParseFailure	&H&H6FFD &	The CommonDialog function failed to parse the strings in the [devices] section of Win.ini
cdlPrinterCodes	&H&H6FFF &	The PDReturnDefault flag was set, but either the hDevMode or hDevNames field was nonzero
cdlPrinterNotFound	&H&H6FF4 &	The [devices] section of Win.ini doesn't contain an entry for the requested printer
cdlRetDefFailure	&H&H6FFC &	The PDReturnDefault flag was set, but either the hDevMode or hDevNames field was nonzero
cdlSetupFailure	&H&H6FFE &	Failed to load required resources


Change Event (placeholder)


Click Event (placeholder)


DblClick Event (placeholder)


DragDrop Event (placeholder)


DragOver Event (placeholder)


KeyDown Event (placeholder)


KeyPress Event (placeholder)


KeyUp Event (placeholder)


MouseDown Event (placeholder)


MouseMove Event (placeholder)


MouseUp Event (placeholder)


OLECompleteDragEvent (placeholder)


OLEDragDrop Event (placeholder)


OLEDragOver Event (placeholder)


OLEGiveFeedback Event (placeholder)


OLESetData Event (placeholder)


OLEStartDrag Event (placeholder)


Refresh Method (placeholder)


OLEDrag Method (placeholder)


Appearance Property (placeholder)


BackColor Property (placeholder)


Caption Property (placeholder)


Enabled Property (placeholder)


Font Property (placeholder)


ForeColor Property (placeholder)


IntegralHeight Property (placeholder)


Locked Property (placeholder)


MouseIcon Property (placeholder)


MousePointer Property (placeholder)


OLEDragMode Property (placeholder)


OLEDropMode Property (placeholder)


SelLength Property (placeholder)


SelStart Property (placeholder)


SelText Property (placeholder)


Style Property (placeholder)


Text Property (placeholder)


Keyword Not Found

The keyword you've selected can't be found in Visual Basic Help. It's possible that:

•	The keyword is misspelled

•	You selected too much or too little text

•	You asked for help on a word that is not a valid Visual Basic keyword.

The easiest way to get help on a specific keyword is to position the insertion point anywhere within the keyword you want help on and press F1. You do not need to select the keyword. In fact, if you select only a portion of the keyword, or more than a single word, Help will not find what you're looking for.

To use the built-in Help search dialog box, press the Help Topics button on the toolbar.

One option to possibly find what you're looking for is to view the ReadMe file that comes with Visual Basic. This document contains information regarding last-minute changes, additions, and deletions that did not make it into the final documentation.


Left, Top Properties (Placeholder)


Height, Width Properties (Placeholder)


Tag Property (Placeholder)


ToolTipText Property (Placeholder)


Count Property (Placeholder)


Item Method (Placeholder)


Hwnd Property (Placeholder)


TabStop Property (Placeholder)


Visible Property (Placeholder)


Picture Property (placeholder)


Max, Min Properties (placeholder)


Add Method (placeholder)


Clear Method (placeholder)


Container Property (placeholder)


Controls Collection (placeholder)


Copies Property (placeholder)


DataBinding Object (placeholder)


DataBindings Collection (placeholder)


Filename Property (placeholder)


FontBold, FontItalic, FontStrikeThru Properties (placeholder)


FontName Property (placeholder)


FontSize Property (placeholder)


GetData Method (placeholder)


GetFormat Method (placeholder)


HelpFile Property (placeholder)


Item Property (placeholder)


Remove Method (placeholder)


SetData Method (placeholder)


Align Property (placeholder)


DragIcon Property (placeholder)


DragMode Property (placeholder)


HelpContextID Property (placeholder)


TabIndex Property (placeholder)


Alignment Constants (placeholder)


Border Property Constants (placeholder)


BorderStyle Constants (placeholder)


BorderStyle Property (ActiveX Controls) (placeholder)


Clear Method (ActiveX Controls) (placeholder)


Clipboard Object Constants (placeholder)


Color Constants (placeholder)


CommonDialog Control Constants (placeholder)


CommonDialog Error Constants (placeholder)


Control Constants (placeholder)


DataBindings Property (placeholder)


DDE Constants (placeholder)


Drag-and-Drop Constants (placeholder)


Drawing Constants (placeholder)


FetchVerbs Method (placeholder)


Form Constants (placeholder)


Graphics Constants (placeholder)


Grid Control Constants (placeholder)


Help Constants (placeholder)


HideSelection Property (ActiveX Controls) (placeholder)


HideSelection Property (placeholder)


Image Property (ActiveX Controls) (placeholder)


ImageList Property (ActiveX Controls) (placeholder)


Index Property (ActiveX Controls) (placeholder)


Index Property (placeholder)


Key Code Constants (placeholder)


Key Property (ActiveX Controls) (placeholder)


Menu Accelerator Constants (placeholder)


Menu Control Constants (placeholder)


Miscellaneous Constants (placeholder)


MousePointer Constants (placeholder)


OLE Container Control Constants (placeholder)


Picture Object Constants (placeholder)


Printer Object Constants (placeholder)


RasterOp Constants (placeholder)


Remove Method (ActiveX Controls) (placeholder)


ShowInTaskbar Property (placeholder)


ShowTips Property (ActiveX Controls) (placeholder)


ShowWhatsThis Method (placeholder)


Text Property (ActiveX Controls) (placeholder)


Value Property (ActiveX Controls) (placeholder)


Variant Type Constants (placeholder)


Visual Basic Constants (placeholder)


WhatsThisButton Property (placeholder)


WhatsThisHelp Property (placeholder)


WhatsThisHelpID Property (placeholder)


WhatsThisMode Method (placeholder)


Windows 95 Control Constants (placeholder)


ColIsVisible Property (placeholder)


ColPos Property (placeholder)


DataObject Object (placeholder)


DataObjectFiles Collection (placeholder)


DataSource Property (placeholder)


Drag Method (placeholder)


DrawMode Property (placeholder)


FixedAlignment Property (placeholder)


GotFocus Event (placeholder)


GridLineWidth Property (placeholder)


Index Property (Control Array) (placeholder)


LostFocus Event (placeholder)


Move Method (placeholder)


Name Property (placeholder)


Object Property (placeholder)


Parent Property (placeholder)


RowColChange Event (placeholder)


RowIsVisible Property (placeholder)


RowPos Property (placeholder)


SetFocus Method (placeholder)


ZOrder Method (placeholder)


Files Method (placeholder)


Connect Event (placeholder)


HScrollSmallChange, VScrollSmallChange Properties (placeholder)


MinHeight, MinWidth Properties (placeholder)


Property Pages Dialog Box (placeholder)


RemoteHost Property (placeholder)


RemotePort Property (placeholder)


ViewportHeight, ViewportLeft, ViewportTop, ViewportWidth Properties (placeholder)


Resync Method (Remote Data) (placeholder)


ContainedVBControls Collection (placeholder)


Member Object (placeholder)


Members Collection (placeholder)


VBComponentsEvents Object (placeholder)


VBProjectsEvents Object (placeholder)


Files Property (placeholder)


Alignment Property (placeholder)


AboutBox Method (placeholder)


Col, Row Properties (placeholder)


RowHeight Property (placeholder)


Scroll Event (placeholder)


ScrollBars Property (placeholder)


SelEndCol, SelStartCol, SelEndRow, SelStartRow Properties (placeholder)


ScrollBars Property (placeholder)


Appearance Property (ActiveX Controls) (placeholder)


BackColor, ForeColor Properties (ActiveX Controls) (placeholder)


BorderStyle Constants (ActiveX Controls) (placeholder)


Caption Property (ActiveX Controls) (placeholder)


Change Event (ActiveX Controls) (placeholder)


Clear Method (ActiveX Controls) (placeholder)


Click Event (ActiveX Controls) (placeholder)


Clipboard Object Constants (ActiveX Controls) (placeholder)


Count Property (ActiveX Controls) (placeholder)


DataObject Object (ActiveX Controls) (placeholder)


DataObjectFiles Collection (ActiveX Controls) (placeholder)


DataSource Property (ActiveX Controls) (placeholder)


DblClick Event (ActiveX Controls) (placeholder)


Drag-and-Drop Constants (ActiveX Controls) (placeholder)


Enabled Property (ActiveX Controls) (placeholder)


FetchVerbs Method (ActiveX Controls) (placeholder)


Files Method (ActiveX Controls) (placeholders)


Font Property (ActiveX Controls) (placeholder)


FontName Property (ActiveX Controls) (placeholder)


FontSize Property (ActiveX placeholder)


GetData Method (ActiveX Controls) (placeholder)


GetFormat Method (ActiveX Controls) (placeholder)


HideSelection Property (ActiveX Controls) (complaceholder)


hWnd Property (ActiveX Controls) (placeholder)


Item Method (ActiveX Controls) (placeholder)


Key Code Constants (ActiveX Controls) (placeholder)


Key Property (ActiveX Controls) (complaceholder)


KeyDown, KeyUp Events (ActiveX Controls) (placeholder)


KeyPress Event (ActiveX Controls) (placeholder)


Max, Min Properties (ActiveX Controls) (placeholder)


MouseDown, MouseUp Events (ActiveX Controls) (placeholder)


MouseIcon Property (ActiveX Controls) (placeholder)


MouseMove Event (ActiveX Controls) (placeholder)


MousePointer Constants (ActiveX Controls) (placeholder)


MousePointer Property (ActiveX Controls) (placeholder


OLECompleteDrag Event (ActiveX Controls) (placeholder)


OLEDrag Method (ActiveX Controls) (placeholder)


OLEDragDrop Event (ActiveX Controls) (placeholder)


OLEDragMode Property (ActiveX Controls) (placeholder)


OLEDragOver Event (ActiveX Controls) (placeholder)


OLEDropMode Property (ActiveX Controls) (placeholder)


OLEGiveFeedback Event (ActiveX Controls) (placeholder)


OLESetData Event (ActiveX Controls) (placeholder)


OLEStartDrag Event (ActiveX Controls) (placeholder)


Picture Property (ActiveX Controls) (placeholder)


Property Pages Dialog Box (ActiveX Controls) (placeholder)


RemoteHost Property (ActiveX Controls) (placeholder)


RemotePort Property (ActiveX Controls) (placeholder)


SelLength, SelStart, SelText Properties (ActiveX Controls) (placeholder)


SetData Method (ActiveX Controls) (placeholder)


ShowTips Property (ActiveX Controls) (complaceholder)


Text Property (ActiveX Controls) (complaceholder)


Value Property (ActiveX Controls) (complaceholder)


hDC Property (ActiveX Controls) (complaceholder)


Height, Width Properties (ActiveX Controls) (complaceholder)


Index Property (ActiveX Controls) (complaceholder)


Left, Top Properties (ActiveX Controls) (complaceholder)


Tag Property (ActiveX Controls) (complaceholder)


Visible Property (ActiveX Controls) (complaceholder)


Remove Method (ActiveX Controls) (complaceholder)


Object Property (ActiveX Controls) (placeholder)


Property Pages (ActiveX controls) (placeholder)


No fonts exist (Error 24574) (Common Dialog Control) (complaceholder)


Help Contents placeholder


BorderStyle Property (ActiveX Controls) (placeholder)


RightToLeft Property (ActiveX Controls) (placeholder)


Refresh Method (ActiveX Controls) (placeholder)