[Mono-bugs] [Bug 81506][Cos] New - Wrong text "Index of out range" in Combobox.SelectedIndex

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 1 12:54:50 EDT 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 oskar-bugs at trebit.se.

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

--- shadow/81506	2007-05-01 12:54:50.000000000 -0400
+++ shadow/81506.tmp.17908	2007-05-01 12:54:50.000000000 -0400
@@ -0,0 +1,28 @@
+Bug#: 81506
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: oskar-bugs at trebit.se               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Wrong text "Index of out range" in Combobox.SelectedIndex
+
+Combobox.SelectedIndex can throw an ArgumentOutOfRangeException. The
+constructor is passed the text "Index of out range", which obviously needs
+some reordering.
+
+I noticed this in current SVN trunk.
+trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs
+
+The line should be changed to:
+  throw new ArgumentOutOfRangeException("SelectedIndex", value, "Index out
+of range");


More information about the mono-bugs mailing list