The common dialog control is a licensed control. All the programs that you
purchase, or came with your computer, that use this control, were built with
a compiler/packaging system that included the license for them, but NOT for
scripts you write. Maybe someone else will post the licensing details with
I have tested the following on WXP; I have no idea whether it works on
The following web page talks about an HTML editor.
It contains the following link to download the source HTA/VBScript.
If you download and install htmleditor.exe, you get a free license that
allows use of the control from script, and if you read the source code
closely, you may learn how to freely install a similar license on any
computer. You may also learn how to use the color picker and font picker
built into the common control too. The editor is an HTA application, so it
is a good way to learn about HTAs too.
I use this HTA to combine info from various web pages into a single HTML
file on my computer. I select the area, including graphics, tables, etc,
from a web page, hit Ctrl-C, than go to the HTML editor window and paste the
stuff where I want it. When I have what I want, I choose save, and the HTML
editor uses the common control to give me the save as... dialog box. When
you open the saved file in IE, the links all work and the graphics show up.
If you want the graphics to show up offline, then use IE to save as MHT
format, which will embed the graphics with the html.