Dynamic Runtime Creation

Dynamic Runtime Creation

Is it possible to add elements to a control array of an object (ex. SSPanel) in a module that is notthe form’s module. My goal is to be able to pass an objectthat is a single element of a control array and an integer representing the number of elements I would like added tothe array and have them created at run time. I have tried using the load command but it doesn’t let me execute this ina separate module outside of the form.

The control array has to be created at design time, even if it just has one element. Once that is done, your code can execute a line like “Dim sNew as New SSPanel”, set it equal to a new element in your control array.

See also  Small Business Strategies with Venmo

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist