Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Common Dialog in Windows 7

Status
Not open for further replies.

laijim

Programmer
Joined
Oct 4, 2010
Messages
6
Location
US
Once upon a time I could write a line of code to show Microsoft's common dialog box like this:

Set objOpenDialog = CreateObject("UserAccounts.CommonDialog")

I understand that this has been depreciated because of security concerns. I have a project where a field computer is using Windows 7; does anyone know the Windows 7 equivalent to the above line of code which will simply open the common dialog box?

Thanks!

Jim
 
Thanks for your imput, I'll check it out.

Jim
 
Thanks for sending that link along. I'm not sure I'll be able to make it work in my situation, though. I need to write the code in vb script (the code is within a GIS mobile mapping application in which vb script is used for customization). Right now I am experimenting a bit with the code...

Jim
 
That class was never documented for user consumption. It would be no effort at all to create a DLL to do the same thing though, and even VBScript hosted in a 3rd party application would be able to use it then.

There must be a "script helper" DLL floating around that provides a few commonly desired functions like this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top