Automatic Control Sizing in Windows Forms MultiSelectionComboBox
9 Dec 2019 / 1 minute to read
Vertical
The control size is increased with respect to its height upon adding Visual Item, from its dropdown list.
The following code sample illustrates you on how to set AutoSizeMode as Vertical.
this.MultiSelectionComboBox1.AutoSizeMode = AutoSizeModes.Vertical;
Me.MultiSelectionComboBox1.AutoSizeMode = AutoSizeModes.Vertical
Horizontal
The control size is increased with respect to its width upon adding Visual Item, from its dropdown list.
The following code sample illustrates you on how to set AutoSizeMode as Horizontal.
this.MultiSelectionComboBox1.AutoSizeMode = AutoSizeModes.Horizontal;
Me.MultiSelectionComboBox1.AutoSizeMode = AutoSizeModes.Horizontal
None
The control size is only increased up to pre-defined size and once VisualItem size exceeds it, Scrollbar is displayed to navigate between its items.
The following code sample illustrates you on how to set AutoSizeMode as None.
this.MultiSelectionComboBox1.AutoSizeMode = AutoSizeMode.None;
Me.MultiSelectionComboBox1.AutoSizeMode = AutoSizeMode.None
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page