Whe creating a new UserControl or Form class, VStudio inserts a Container class instance variable named components and assigns it to null. As far as I can tell it is never used beyond that. The overridden Dispose method checks it, and if it is not null, calls components.Dispose().
Is this variable really needed by the designer? If so, what is it used for?
ADAdministrator Syncfusion Team August 30, 2002 01:17 PM
Certain controls/components like ImageList has a overloaded constructor that will take a IComponents argument. For such components, the desginer will look for this "components" member in the Form and use that with the above constructor when generating code.
Doesn't seem very elegant, does it?