Called when the designer is intialized. This allows the designer to provide some meaningful default values in the component. The default implementation of this sets the components's default property to it's name, if that property is a string.
[Visual Basic] Overridable Public Sub OnSetComponentDefaults() [C#] public virtual void OnSetComponentDefaults(); [C++] public: virtual void OnSetComponentDefaults(); [JScript] public function OnSetComponentDefaults();
ComponentDesigner Class | ComponentDesigner Members | System.ComponentModel.Design Namespace