The title may be misleading. I have the following
- A custom user control that extends
Windows.Forms.Control - An
ActiveXcontrol that is to be nested in the user control
On the HandleCreated event of the user control, I am initializing a new instance of the ActiveX control and adding it to the ControlCollection of the user control. This leads to the ActiveX control showing up as part of the user control even during the design time. I am looking for a event or a methodology so that the ActiveX control is only initialized at run time and not shown during design time.
Use DesignMode property of the component.