https://bugzilla.novell.com/show_bug.cgi?id=436790
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=436790#c5 --- Comment #5 from Steve Odbc <[EMAIL PROTECTED]> 2008-10-22 10:49:35 MDT --- Will this help? Since the problem is a wrong index. MONO may call OnDrawItems as often as it likes, but it shouldn't pass an index that doesn't happen on dotNet. This is the code I use, and It works perfect on dotNet, tested with a hundred of items (no negative index, no exception): protected override void OnDrawItem(DrawItemEventArgs e) { base.OnDrawItem(e); // this is what I always do if the frameworks don't match: if (Global.UseMonoHacks) { // only MONO goes here if (0 > e.Index) return; } // ... string CurText = this.Items[e.Index].Text // ... } -- 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 - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs