Share via


Visual Basic: CommonDialog Control

MaxFileSize Property

See Also   Example   Applies To

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