Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CheckedListBox.ValueMember Property

This property supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets a string that specifies the property of the data source from which to draw the value. This property is not relevant to this class.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public string ValueMember { get; set; }
/** @property */
public String get_ValueMember ()

/** @property */
public void set_ValueMember (String value)

public function get ValueMember () : String

public function set ValueMember (value : String)

Not applicable.

Property Value

A string that specifies the property of the data source from which to draw the value.

Exception typeCondition

ArgumentException

The specified property cannot be found on the object specified by the DataSource property.

Specify the contents of the ValueMember property in cases where you bind data.

You can clear the ValueMember property by setting the property to an empty string ("") or a null reference (Nothing in Visual Basic).

Setting a new ValueMember property raises the ValueMemberChanged and SelectedValueChanged events.

This property is not relevant to this class.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft