Re: UserAccounts.CommonDialog alternative for Vista?
- From: "Paul Randall" <paulr901@xxxxxxxxxxxx>
- Date: Sat, 20 Oct 2007 18:21:29 -0600
"arno" <rnospam_AT_xs4all_DOT_nl> wrote in message
news:bblkh3d654i3tf96suadrocin39hfa30g8@xxxxxxxxxx
I sell an application that supports vbscript in it's forms, and on
some I use UserAccounts.CommonDialog to display a File Open dialog so
a user can select a filename.
On Vista, this functionality is not available. My question: is there
an alternative for Vista that does not require distributing any
additional controls?
Some background info:
My searches so far revealed that the following alternatives are
available, none of them are very appealing
-Using MSComDlg.CommonDialog, which requires installing the Common
Dialog control, which is subject to licensing
-Using SAFRCFileDlg.FileSave, which also requires installing an
additional control, and which is deprecated and not originally
intended for use in scripting in the first place.
-Using Choose File HTML File Control Object, a workaround that
(ab)uses IE, that I find inventive but very ugly..
Hi, Arno
MSComDlg.CommonDialog is indeed a licensed control, which Microsoft
distributes with Visual Studio and perhaps some other packages. Microsoft
also gives you a free license with some of its free downloads, one of which
is a simple HTML editor. Perhaps you can read the license agreement when
you install one of these free downloads and figure out a similar way for
your users to get the free license. The first time you run the HTML editor
..HTA on a computer with no license for MSComDlg.CommonDialog, it installs
the license. Perhaps your application can use the common dialog's other
functions, such as its color picker.
Learn about this simple HTML editor at:
http://msdn2.microsoft.com/en-us/library/ms537834.aspx;
Download it at:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/samples/internet/author/html/htmleditor/default.asp
Search the .HTA for this line to see how to set up the control:
<!-- Create the licensing object for the common dialog activex control -->
-Paul Randall
.
- References:
- Prev by Date: I need a script (pref VB) to change permissions on a folder in multiple folders.
- Next by Date: Re: Troubleshooting an attempt to open connection
- Previous by thread: UserAccounts.CommonDialog alternative for Vista?
- Next by thread: Re: UserAccounts.CommonDialog alternative for Vista?
- Index(es):
Relevant Pages
|