Occurs when a control is inserted onto a form, a Frame, or a Page of a MultiPage.
For Frame Private Subobject _AddControl( ) For MultiPage Private Subobject _AddControl(indexAs Long, ctrlAs Control) The AddControl event syntax has these parts:
|object||Required. A valid object.|
|index||Required. The index of the Page that will contain the new control.|
|ctrl||Required. The control to be added.|
The AddControl event occurs when a control is added at run time. This event is not initiated when you add a control at design time, nor is it initiated when a form is initially loaded and displayed at run time. The default action of this event is to add a control to the specified form, Frame, or MultiPage. The Add method initiates the AddControl event.