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=188.8.131.52, 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.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.