Occurs when an owner-drawn System.Windows.Forms.ListBox is created and the sizes of the list items are determined.
You can create an event handler for this event to specify the size an item will be made before it is drawn in the ListBox.DrawItem event. The event is only raised when the ListBox.DrawMode property is set to DrawMode.OwnerDrawVariable.
The maximum valid height of a System.Windows.Forms.ListBox item is 255 pixels. Setting the MeasureItemEventArgs.ItemHeight property of the System.Windows.Forms.MeasureItemEventArgs to a value greater than 255 when handling this event may yield unexpected results.
For more information about handling events, see Consuming Events.