Click to See Complete Forum and Search --> : DYnamically creating forms & controls in VBScript


cappy2112
January 24th, 2005, 02:59 PM
I need to create a VBscript which has 1 form, and at least one control.
I want to prompt the use to change the drive letter,.

So I need a form, and a Dir List Box.

However, I don't know how to add a form or control to a vbscript, since it seems to be limited to variant data types only.

Does anyone have an example of how to add a form and control to a vbscript?

thanks

visualAd
January 25th, 2005, 05:35 AM
Again this is not possible in VB Script, you need a wrapper object created in VB. You can however use the common dialog control from VBScript which will display a browser dialog. I have found some code and a tutorial which will help you:

http://myitforum.techtarget.com/articles/11/view.asp?id=7414