Gets or sets the property to display for this ListControl.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
[<TypeConverterAttribute("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>] member DisplayMember : string with get, set
The controls that inherit from ListControl can display diverse types of objects. If the specified property does not exist on the object or the value of is an empty string (""), the results of the object's ToString method are displayed instead.
If the new display member cannot be set, the previous display member setting is maintained.
The following code example is a complete application that shows how you can use DataSource, , ValueMember, and SelectedValue members of the ListControl class as implemented by the ListBox class. The example loads an ArrayList and the list box. When the user selects an item in the list box, the selected value is used to return the data associated with the selected item.