- IDesignerHost: This is defined in the System.ComponentModel.Designnamespace.
- IContainer: This is defined in the System.ComponentModel namespace.
When you implement the IContainer.Add method, see if the component that you are adding is the first component. If the component is the first component on your custom form designer, retrieve the corresponding IRootDesigner interface. If the component is not the first component on your custom form designer, retrieve the corresponding IDesigner interface. After you retrieve the appropriate interface (IDesigner or IRootDesigner), associate the retrieved designer with your custom form designer to provide the basic framework for your custom form designer. Then display your custom form designer. For more information, see the code sample and the associated documentation. Microsoft does not provide any support for the code sample.
The following file is available for download from the Microsoft Download Center:
Download the DesignerHost.exe package now.For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
To use this sample code, build, and then run DesignerHost.
Article ID: 813808 - Last Review: Mar 29, 2017 - Revision: 3