System.Windows.Forms.ComboBox.MeasureItem Event

Occurs each time an owner-drawn System.Windows.Forms.ComboBox item needs to be drawn and when the sizes of the list items are determined.

Syntax

public event MeasureItemEventHandler MeasureItem

Remarks

You can create an event handler for this event to specify the size an item is made before it is drawn in the ComboBox.DrawItem event.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0