Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


[help]A Problem about hta code

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,26450
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> [help]A Problem about hta code
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 [help]A Problem about hta code - 9/27/2005 11:54:00 PM   
  kancnspace

 

Posts: 5
Score: 0
Joined: 9/27/2005
Status: offline
Original message moved by Snipah
Reason : topic is a normal question, should be in the main VBScript forum
when I try to Create Object CommonDialog Controls,I got this wrong warning!(view in attachment)

I Want to know what wrong,please help me!!!
This is my .vbs code.

      



Thumbnail Image


Attachment (1)

< Message edited by kancnspace -- 9/27/2005 11:55:18 PM >


_____________________________

Kancn Space
 
 
Post #: 1
 
 RE: [help]A Problem about hta code - 9/28/2005 12:22:25 AM   
  Zifter


Posts: 318
Score: 0
Joined: 1/5/2005
From: Belgium
Status: offline
I think your using the wrong class object (I don't have MSCommon.Dialog)

You could try this, but there are license issues with this one (discussed in this topic)
Set Dlg = CreateObject("MSComDlg.CommonDialog")

Or you could use
Set Dlg = CreateObject("UserAccounts.CommonDialog")


HTH

(in reply to kancnspace)
 
 
Post #: 2
 
 RE: [help]A Problem about hta code - 9/28/2005 6:22:24 PM   
  kancnspace

 

Posts: 5
Score: 0
Joined: 9/27/2005
Status: offline
Thank you , I got it.

we can also use this code:

      

by the way,Is there any details about UserAccounts.CommonDialog

< Message edited by kancnspace -- 9/28/2005 6:24:00 PM >


_____________________________

Kancn Space

(in reply to Zifter)
 
 
Post #: 3
 
 RE: [help]A Problem about hta code - 9/28/2005 9:13:48 PM   
  TNO


Posts: 1302
Score: 12
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
From Microsoft's Scripting Guy:

quote:

This dialog box is actually used in the User Accounts control panel (Nusrmgr.cpl) found in Windows XP (and if you’re wondering, yes, that means that it only works under Windows XP). It’s a real-live File Open dialog box, with just one real limitation: it’s best for selecting a single file at a time (it’s possible to create a multi-select dialog box, but it’s a bit different in appearance, and a bit goofy to use).


More info:

http://blogs.msdn.com/gstemp/archive/2004/02/17/74868.aspx

_____________________________

To iterate is human, to recurse divine. -- L. Peter Deutsch

(in reply to kancnspace)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> [help]A Problem about hta code Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts