[Mono-bugs] [Bug 79077][Nor] New - ListBox: Setting SelectedItem to null doesn't match MS behaviour

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 15 08:37:14 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by unserkonig at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79077

--- shadow/79077	2006-08-15 08:37:14.000000000 -0400
+++ shadow/79077.tmp.29633	2006-08-15 08:37:14.000000000 -0400
@@ -0,0 +1,29 @@
+Bug#: 79077
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: unserkonig at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ListBox: Setting SelectedItem to null doesn't match MS behaviour
+
+Setting ListBox.SelectedItem to null should unselect currently selected
+items and also should set SelectedIndex to -1.
+
+Steps to reproduce the problem:
+1. Compile the sample.
+2. Select any of the items in the list box and then press the "Set
+SelectedItem" button.
+
+Pressing the button should unselect the currently selected item (additional
+info is printed to the console, about both SelectedItem and SelectedIndex;
+those ones should have values of "null" and -1, respectively).


More information about the mono-bugs mailing list