dotnetmonitor.com

 
Index
Previous
Next

 

ToolStripCombo box is simply the WindowsForms ComboBox wrapped in a ToolStripControlHost to make is hostable via ToolStrips. Some custom renderering of the ComboBox is done for border color, size and dropdown arrow. A subset of the hosted controls properties and events are exposed at the ToolStripComboBox level, but the underlying ComboBox control is fully accessible via the ToolStripComboBox.ComboBox property.

 

NOTE: See http://blogs.msdn.com/jfoscoding/archive/2005/03/03/384430.aspx for sample how to replace a ComboBox dropdown with a ToolStripDropDown.

Painting
When should I use Paint/OnPaint and when should I override the ToolStripRenderer?
Do I need to worry about double buffering?
Parenting
Partial Trust
Usage