Share via


FormComboBoxControl.prefColumnSize Method

Specifies the preferred column width and height for the form combo box control.

Syntax

public void prefColumnSize(int width, int height)

Run On

Client

Parameters

  • width
    Type: int
    The preferred width of the control.
  • height
    Type: int
    The preferred height of the control.

Examples

The following example shows how to set the preferred width and height of a combo box control.

// The nWidth and nHeight variables were  
// previously assigned as int variables. 
// The ctrl variable was previously assigned 
// as a FormComboBoxControl variable. 
 
ctrl.prefColumnSize( nWidth, nHeight);

See Also

FormComboBoxControl Class

FormComboBoxControl.heightMode Method