Table of contents
Collapse the table of content
Expand the table of content

AddControl Event

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Occurs when a control is inserted onto a form, a Frame, or a Page of a MultiPage. Syntax For Frame Private SubobjectAddControl( ) For MultiPage Private Sub_objectAddControl(_indexAs Long, ctrlAs Control) The AddControl event syntax has these parts:

objectRequired. A valid object.
indexRequired. The index of the Page that will contain the new control.
ctrlRequired. The control to be added.

Remarks 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.

© 2018 Microsoft