Table of contents
TOC
Collapse the table of content
Expand the table of content

ListStyle Property

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Specifies the visual appearance of the list in a ListBox or ComboBox. Syntaxobject. ListStyle [= fmListStyle ] The ListStyle property syntax has these parts:

PartDescription
objectRequired. A valid object.
fmListStyleOptional. The visual style of the list.

Settings The settings for fmListStyle are:

ConstantValueDescription
fmListStylePlain0Looks like a regular list box, with the background of items highlighted.
fmListStyleOption1Shows option buttons, or check boxes for a multi-select list (default). When the user selects an item from the group, the option button associated with that item is selected and the option buttons for the other items in the group are deselected.

Remarks The ListStyle property lets you change the visual presentation of a ListBox or ComboBox. By specifying a setting other than fmListStylePlain, you can present the contents of either control as a group of individual items, with each item including a visual cue to indicate whether it is selected. If the control supports a single selection (the MultiSelect property is set to fmMultiSelectSingle ), the user can press one button in the group. If the control supports multi-select, the user can press two or more buttons in the group.

© 2018 Microsoft