// The DemoComboBox2 class shows that a control can// support both simple binding as well as list binding.
[LookupBindingProperties(
"DataSource",
"DisplayMember",
"ValueMember",
"SelectedValue")]
[DefaultBindingProperty("Text")]
publicclass DemoComboBox2 : Control
{
}

The following code example shows that the LookupBindingPropertiesAttribute attribute can be unset by specifying no arguments.