Rather than simply assign default values to these properties in the constructor, developers can completely control a property, for example by preventing users or developers who use the control from ever being able to close the control.CreateChildControls When you inherit from the WebPart class, you need to provide a UI for your custom control.