ComponentOne ComboBox for ASP.NET: ComboBox for ASP.NET AJAX Task-Based Help > Making the C1ComboBox Drop-Down List Resizable

Making the C1ComboBox Drop-Down List Resizable

You can allow users to resize the C1ComboBox drop-down list by setting the DropDownResizable property to True.

Setting the DropDownResizable property in Design View

1.   Right-click the C1ComboBox control and select Properties from the context menu.

2.   In the Visual Studio Properties window, click the drop-down arrow next to the DropDownResizable property and select True.

Setting the DropDownResizable property programmatically

Add the following code to your form:

      Visual Basic

' add the Imports statement at the top of the form

Imports C1.Web.UI.Controls.C1ComboBox;

 

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        C1ComboBox1.DropDownResizable = True

End Sub

      C#

// add the using statement at the top of the form

using C1.Web.UI.Controls.C1ComboBox;

 

Protected void Page_Load(object sender, EventArgs e)

    {

        C1ComboBox1.DropDownResizable = true;

    }

At run time, users can resize the list by dragging the lower right corner.


Send comments about this topic to ComponentOne.
Copyright © 1987-2010 ComponentOne LLC. All rights reserved.