[Mono-bugs] [Bug 80696][Maj] New - '-1' is causing ArgumentException for ListBox
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Feb 1 06:42:40 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 albright at wesay.org.
http://bugzilla.ximian.com/show_bug.cgi?id=80696
--- shadow/80696 2007-02-01 06:42:40.000000000 -0500
+++ shadow/80696.tmp.31751 2007-02-01 06:42:40.000000000 -0500
@@ -0,0 +1,44 @@
+Bug#: 80696
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details: ubuntu dapper
+Status: NEW
+Resolution:
+Severity: Unknown
+Priority: Major
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: albright at wesay.org
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: '-1' is causing ArgumentException for ListBox
+
+Description of Problem:
+When ListBox.SelectedIndex is assigned -1 to clear selection, causes System
+ArgumentException to be thrown.
+
+Steps to reproduce the problem:
+1. Create a ListBox.
+2. Assign -1 in SelectedIndex
+3. Kaboom
+
+Actual Results:
+System.ArgumentException throws '-1' is not a valid value
+
+Stack is:
+at System.Windows.Forms.ScrollBar.set_Value (Int32 value)
+at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.ScrollBar:set_Value (int)
+at System.Windows.Forms.ListBox.UpdateTopItem ()
+at System.Windows.Forms.ListBox.set_SelectedIndex (Int32 value)
+
+Expected Results:
+Unselect ListBox
+
+How often does this happen?
+
+
+Additional Information:
More information about the mono-bugs
mailing list