[Mono-bugs] [Bug 80428][Nor] New - CheckedListBox: ArgumentException setting SelectedIndex to -1

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 2 12:09:03 EST 2007


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 gert.driesen at pandora.be.

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

--- shadow/80428	2007-01-02 12:09:03.000000000 -0500
+++ shadow/80428.tmp.6278	2007-01-02 12:09:03.000000000 -0500
@@ -0,0 +1,28 @@
+Bug#: 80428
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CheckedListBox: ArgumentException setting SelectedIndex to -1
+
+When CheckedListBox.SelectedIndex is set to -1, then an ArgumentException 
+is thrown from ScrollBar.Value:
+
+System.ArgumentException: '-1' is not a valid value for 'Value' ....
+
+I've committed a NotWorking unit test named "Text_SelectionMode_One" in 
+CheckedListBoxTest.cs that allows you to reproduce this issue.
+
+That unit test was actually created for another purpose, but it currently 
+fails because of this issue.


More information about the mono-bugs mailing list