System.Windows.Forms.ToolStripControlHost Class

Hosts custom controls or Windows Forms controls.

See Also: ToolStripControlHost Members

Syntax

public class ToolStripControlHost : ToolStripItem

Remarks

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:

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.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0