Search Tools Links Login

File Dialog Class (replace common dialog control with this lightweight class)

Visual Basic 6, or VB Classic

Replaces Microsoft's common dialog control file dialog features. Uses same interface to call the FileOpen and FileSave dialogs including multiselection support.
Instead of making a more versatile control with print dialogs, color dialogs, and hooking, I decided to make a very lightweight one since the CommonControl Print and Color Dialogs are
essentially useless.
I could have added hooking functionality, but that would involve including a standard module
as well. The only major benefit of hooking is the ability to center the dialog. However,
with this code, as long as you specify the form's handle, it will position the dialog to the
upper left of the form
This is a direct replacement to the Microsoft CommonDialog control and will involve very little
Change in coding to implement.

Original Author: Bill Bither


File Dialog Options (FileName, Filters, Default Extension, etc..)


selected Filename and/or filenames

API Declarations


About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 99 times


Visual Basic 6

Posted: 9/3/2020 3:45:00 PM
Size: 5,685 bytes

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.