BUG: The SelectionMode poperty of the data-bound ListBox control or of the CheckedListBox control does not prompt you to provide a valid value
On This PageSYMPTOMSWhen you set the SelectionMode property of the data-bound ListBox control or of the data-bound CheckedListBox control to NONE in the Microsoft Windows Form Designer, you receive the following
error message: Invalid property value If you
click OK in the message box, you set the SelectionMode property to NONE. However, you might not expect the SelectionMode property to be set to NONE. The Form Designer does not prompt you to provide a valid
value.Note When you run the Windows application after you set the SelectionMode property to NONE, you receive the following error message: An
unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll Additional information: Cannot call this method when SelectionMode is SelectionMode.NONE. STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
MORE INFORMATIONSteps to Reproduce the Behavior
REFERENCESFor more information, visit the following Microsoft Web
site: http://msdn2.microsoft.com/en-us/library/system.windows.forms.selectionmode(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/system.windows.forms.selectionmode(vs.71).aspx) APPLIES TO
| Article Translations
|

Back to the top
