Add usercontrol to collection
How can i add my usercontrol to a global collection?
Code:
'In module
public function addMe(obj as usercontrol1)
coll.add(obj)
end function
'In usercontrol
Private Sub UserControl_Initialize()
addMe(this)
End Sub
However, i cant figure out how to get a reference to the control..any1 can help me out?
Re: Add usercontrol to collection
The user control object's name is UserControl, so I'm guessing (without trying it out) that it would be
Code:
Private Sub UserControl_Initialize()
addMe(UserControl)
End Sub