Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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
[C#]
public bool IntegralHeight {get; set;}
[C++]
public: __property bool get_IntegralHeight();
public: __property void set_IntegralHeight(bool);
[JScript]
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.

Remarks

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.

Requirements

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.