Question:
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.
Answer:
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.