Article ID: 168917
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. This article documents how to set up the control for successful use in Internet Explorer.
The CommonDialog control is a licensed control that ships with Visual Basic (VB) 5.0. Only developers with a valid design-time license for the control may distribute the control for use in their applications or on their Web sites. The control and design-time license can be obtained by downloading the VB 5.0 Control Creation Edition (VBCCE), purchasing VB 5.0, or purchasing Visual InterDev.
In order to use the control in a Web page, a license package file (.lpk file) for the control must be created. This .lpk file is then referenced by the Web page. If there are multiple licensed controls on a page, a single .lpk file must be created for all of them.
This article covers generating the .lpk file and using it on a Web page.
Microsoft provides a signed .cab file, which can be referenced to install the CommonDialog control. If this .cab file is used, a Web page that uses the control would look similar to the following:
Note that Comdlg.lpk is a file that you generated and the name is arbitrary. Also, the location of the file is relative to the HTML file. Here the HTML and .lpk files are assumed to be in the same directory.
For additional information about how to use licensed ActiveX Controls in Internet Explorer, please see the following article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/159923/EN-US/ )How To Using Licensed ActiveX Controls in Internet Explorer
Article ID: 168917 - Last Review: June 22, 2014 - Revision: 4.0
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.