Which property is used to specify a combo box’s style?

ComboBoxStyle
DropDownStyle
DropStyle
Style

The correct answer is A. ComboBoxStyle.

The ComboBoxStyle property is used to specify the style of a ComboBox control. The possible values are:

  • DropDown: The ComboBox displays a drop-down list of items.
  • DropDownList: The ComboBox displays a drop-down list of items, and the selected item is displayed in the text box.
  • Simple: The ComboBox displays a text box, and the user can type in an item that is not in the list.

The DropDownStyle and DropStyle properties are deprecated and should not be used. The Style property is used to specify the appearance of a control. It is not used to specify the style of a ComboBox control.

Exit mobile version