System MarshalByRefObject
System.ComponentModel Component
System.Windows.Forms Control
System.Windows.Forms ListControl
System.Windows.Forms ComboBox
CleanCode.GeneralComponents.Controls ComboBoxWithTooltip
Namespace: CleanCode.GeneralComponents.Controls
Assembly: CleanCode.GeneralComponents (in CleanCode.GeneralComponents.dll) Version: 1.2.3.0 (1.2.03)
A ComboBox displays a text box combined with a ListBox, which enables the user to select items from the list or enter a new value. This modified ComboBox provides support for each item in the drop down list to display a tooltip with the same text as the item itself. This is useful for a ComboBox that is particularly narrow, or for contents of its list that are particularly wide (e.g. file paths).
This class exposes the same properties, methods, and events as the standard ComboBox. Simply instantiating this class provides automatic support for tooltips; there is nothing to set.
This code comes from my StackOverflow answer to "Tooltip for each items in a combo box" at http://stackoverflow.com/questions/680373/tooltip-for-each-items-in-a-combo-box/5053730#5053730, which is a refinement to the answer from Zhi-Xin Ye on the MSDN post "Windows Dropdown question" at http://social.msdn.microsoft.com/forums/en-US/winforms/thread/e0418c61-a614-4f0d-8cf4-59cf9cc5bba5/.
Since CleanCode 1.1.01.