https://bugzilla.novell.com/show_bug.cgi?id=436790
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=436790#c3 --- Comment #3 from Steve Odbc <[EMAIL PROTECTED]> 2008-10-22 03:32:22 MDT --- You are right: I get lots of minus ones with dotNet using your code. The thing is, as I said, I didn't set up an event handler, but I built a child class of ComboBox. Acually I built a larger child class and in the overridden OnDrawItem() method I was very carelessly using the index the framework gave me to find the text to draw (I never expected a wrong index). And this worked perfect with dotNet. But when I tested it with MONO, I got an IndexOutOfRange exception. And then I found, that MONO gave me a negative index. All I can say is, that up till now I haven't seen an negative index in dotNet, when using override. So there might be an internal difference in behavior between the method OnDrawItem() and the event DrawItem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
