Object class is invalid for this container (Error 1744)

You have attempted to add a member object to a parent object with the AddObject method. It cannot be added because the member object's class cannot be a member of the parent's object class. For example, you cannot add a Grid object to a PageFrame object.