[Mono-bugs] [Bug 80753][Nor] New - ListBox: ArgumentOutOfRangeException changing SelectedIndex if not yet created

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Feb 7 15:50:51 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=80753

--- shadow/80753	2007-02-07 15:50:51.000000000 -0500
+++ shadow/80753.tmp.30547	2007-02-07 15:50:51.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 80753
+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: ListBox: ArgumentOutOfRangeException changing SelectedIndex if not yet created
+
+When modifying the SelectedIndex of a ListBox while its handle is not yet 
+created results in the following exception:
+
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out 
+of range.
+Parameter name: GetItemRectangle index out of range.
+  at System.Windows.Forms.ListBox.GetItemRectangle (Int32 index) [0x00000] 
+  at System.Windows.Forms.ListBox.GetItemDisplayRectangle (Int32 index, 
+Int32 first_displayble) [0x00000] 
+  at System.Windows.Forms.ListBox.InvalidateItem (Int32 index) [0x00000] 
+  at System.Windows.Forms.ListBox.SelectItem (Int32 index) [0x00000] 
+  at System.Windows.Forms.ListBox.set_SelectedIndex (Int32 value) 
+[0x00000] 
+  at Test.Main (System.String[] args) [0x00000] 
+
+I'll add a unit test (named SelectedIndex_NotCreated) for this issue in 
+ListBoxTest.cs.


More information about the mono-bugs mailing list