See Also: ToolStripControlHost Members
System.Windows.Forms.ToolStripControlHost is the abstract base class for System.Windows.Forms.ToolStripComboBox, System.Windows.Forms.ToolStripTextBox, and System.Windows.Forms.ToolStripProgressBar. System.Windows.Forms.ToolStripControlHost can host other controls, including custom controls, in two ways:
Construct a System.Windows.Forms.ToolStripControlHost with a class that derives from System.Windows.Forms.Control. To fully access the hosted control and properties, you must cast the ToolStripControlHost.Control property back to the actual class it represents.
Extend System.Windows.Forms.ToolStripControlHost, and in the inherited class's default constructor, call the base class constructor passing a class that derives from System.Windows.Forms.Control. This option lets you wrap common control methods and properties for easy access in a System.Windows.Forms.ToolStrip.
Use the System.Windows.Forms.ToolStripControlHost class to host your customized controls or any other Windows Forms control.
To customize a System.Windows.Forms.ToolStripItem, derive from System.Windows.Forms.ToolStripControlHost and create a custom implementation. You can override methods such as ToolStripControlHost.OnSubscribeControlEvents(Control) to handle events raised by the hosted controls, and you can put custom functionality into properties to enhance the hosted control.