Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DefaultExt Property
Collapse the table of content
Expand the table of content

Visual Basic: CommonDialog Control

Visual Studio 6.0

DefaultExt Property

See Also   Example   Applies To

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


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.


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


© 2015 Microsoft