This documentation is archived and is not being maintained.

ComboBox.IntegralHeight Property

Gets or sets a value indicating whether the control should resize to avoid showing partial items.

[Visual Basic]
Public Property IntegralHeight As Boolean
public bool IntegralHeight {get; set;}
public: __property bool get_IntegralHeight();
public: __property void set_IntegralHeight(bool);
public function get IntegralHeight() : Boolean;
public function set IntegralHeight(Boolean);

Property Value

true if the list portion can contain only complete items; otherwise, false. The default is true.


When this property is set to true, the control automatically resizes to ensure that an item is not partially displayed. If you want to maintain the original size of the ComboBox based on the space requirements of your form, set this property to false. If the ComboBox does not contain any items, this property has no effect.

Note   If the DrawMode property is set to DrawMode.OwnerDrawVariable, this property has no effect.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ComboBox Class | ComboBox Members | System.Windows.Forms Namespace