jmarkus
Mechanical
- Jul 11, 2001
- 377
Has anyone successfully used Microsoft ScriptControl in an NX Journal (VB.Net). I would like to incorporate some VBScript code into my journal, but I can't get NX to recognize:
Since you are going to ask "Why would you want to use VBScript?" I am having trouble with the FolderBrowserDialog to select a folder and I wanted to use shell.BrowseForFolder, hoping I could get that to work...so if anyone had another workaround to allow a user to select a folder, I would be interested in that as well.
Thanks,
Jeff
Code:
Imports Interop.MSScriptControl
...
Dim Script = New MSScriptControl.ScriptControl
Script.Language = "VBScript"
...
Since you are going to ask "Why would you want to use VBScript?" I am having trouble with the FolderBrowserDialog to select a folder and I wanted to use shell.BrowseForFolder, hoping I could get that to work...so if anyone had another workaround to allow a user to select a folder, I would be interested in that as well.
Thanks,
Jeff