Version

Resize Drop Down in WinCombo

The drop down of WinCombo™ control can be resized using a handle, which can be positioned at the bottom of the drop-down either vertically or diagonally. This handle enables you to resize the drop-down and view any text or item in the drop-down that has been truncated due to the size of the control. By default the DropDownResizeHandleStyle property is set to ‘None’. When set to a particular style and resized at run time, the resized height and width of the drop down will be stored for that run of the application. You can also style the handle using the DropDownResizeHandleAppearance property.

The following code assumes that you have an UltraCombo control dropped onto your form and bound to data.

In Visual Basic:

' Set the Drop Down Resize handle style for UltraCombo
Me.ultraCombo1.DropDownResizeHandleStyle = Infragistics.Win.DropDownResizeHandleStyle.DiagonalResize
' Set the back color for the handle
Me.ultraCombo1.DropDownResizeHandleAppearance.BackColor = Color.Blue

In C#:

// Set the Drop Down Resize handle style for UltraCombo
this. ultraCombo1.DropDownResizeHandleStyle = Infragistics.Win.DropDownResizeHandleStyle.DiagonalResize;
// Set the back color for the handle
this. ultraCombo1.DropDownResizeHandleAppearance.BackColor = Color.Blue;