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 [EMAIL PROTECTED]

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: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to