How to add the control dynamically using vb script and we need to display this on a form

Posted on 2011-05-05
Medium Priority
Last Modified: 2014-01-12

As we are designing the Application that interract with MFD device using NSi AutoStore,

My issue is that i am not able to create the controls dynamically using VB Script.

Please help me out in giving the code for creating the controls like Textboxes,Labels,dropdown boxes using VB script.

Question by:yadav_19
LVL 14

Accepted Solution

Psy053 earned 2000 total points
ID: 35751921
VBScript doesn't really have the ability to create controls such as textboxes, lables and drop down boxes. I think the closest thing you'll get is using VBScript to dynamically generate a HTA / HTML Page with those controls.

Expert Comment

ID: 38308426
Most (if not all) of the MFP Capture components do not support dynamic creation of controls.
Additionally each capture component supports different properties, events, methods, and properties.
Ill save you some time if you havent already  figured this out: create all the controls in the initial form configuration for your process, then disable and enable the controls as needed in your process with your script. Looks just like you are dynamically creating and destroying the controls.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Script to copy or move mouse-selected collection of files plus targets referenced by shortcuts (.lnk) The purpose of this article is to help illuminate the real challenges and options available (where they may exist) for utilizing simple scriptin…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Loops Section Overview
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question