ComboBoxWithTooltip ClassCleanCode C# Libraries v1.2.03 API
Represents a Windows combo box control with each item in the dropdown rendering a tooltip.
Inheritance Hierarchy

OnlineSystem Object
  OnlineSystem MarshalByRefObject
    OnlineSystem.ComponentModel Component
      OnlineSystem.Windows.Forms Control
        OnlineSystem.Windows.Forms ListControl
          OnlineSystem.Windows.Forms ComboBox
            CleanCode.GeneralComponents.Controls ComboBoxWithTooltip

Namespace: CleanCode.GeneralComponents.Controls
Assembly: CleanCode.GeneralComponents (in CleanCode.GeneralComponents.dll) Version: (1.2.03)

public class ComboBoxWithTooltip : ComboBox

A OnlineComboBox 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, which is a refinement to the answer from Zhi-Xin Ye on the MSDN post "Windows Dropdown question" at

Since CleanCode 1.1.01.

See Also