Which of the following property is used to specify a combo box’s style in Visual Basic?

Style
ComboBoxStyle
DropDownStyle
DropStyle

The correct answer is: B. ComboBoxStyle

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

  • DropDown: The ComboBox control displays a drop-down list of items.
  • Simple: The ComboBox control displays a single line of text.
  • DropDownList: The ComboBox control displays a drop-down list of items, and the user can only select one item.

The Style property is used to specify the style of a control. The possible values for this property are:

  • Normal: The control is displayed in its normal state.
  • Flat: The control is displayed in a flat style.
  • System: The control is displayed in the system style.

The DropStyle property is used to specify the style of a drop-down list. The possible values for this property are:

  • DropDown: The drop-down list is displayed in a drop-down style.
  • DropDownList: The drop-down list is displayed in a drop-down list style.

The DropStyle property is not used to specify the style of a ComboBox control.

Exit mobile version