[Mono-bugs] [Bug 79588][Blo] Changed - [PATCH] ComboBox: ArgumentOutOfRangeException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Oct 12 11:31:32 EDT 2006


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 rolfkvinge at ya.com.

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

--- shadow/79588	2006-10-12 11:25:49.000000000 -0400
+++ shadow/79588.tmp.2996	2006-10-12 11:31:32.000000000 -0400
@@ -273,6 +273,15 @@
 the first place.
 
 ------- Additional Comments From rolfkvinge at ya.com  2006-10-12 11:25 -------
 Created an attachment (id=17842)
 Another proposed patch
 
+
+------- Additional Comments From rolfkvinge at ya.com  2006-10-12 11:31 -------
+Turns out FileDialog is repopulating the combobox when an item is 
+selected, so when the repopulating is finished another 
+SelectedIndexChanged event is fired. And since the event is raised 
+before the selected item is highlighted, when the first call to 
+SelectedIndex gets to set the highlighted item, the second 
+(recursive) call has modified the number of items in the combobox and 
+the first one causes an exception.


More information about the mono-bugs mailing list