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

Posted on 2011-05-05
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

    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.
    LVL 2

    Expert Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Often times network admins need to run domain logon scripts for seperate subnets, but also for a seperate set of computers within that subnet.  In this circumstance, configuring Active Directory Sites and Services then linking a GPO to site/subnet m…
    This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now