[Mono-bugs] [Bug 425049] ListView: EnsureVisible(>=16)	IndexOutOfRangeException
    bugzilla_noreply at novell.com 
    bugzilla_noreply at novell.com
       
    Wed Sep 10 09:27:07 EDT 2008
    
    
  
https://bugzilla.novell.com/show_bug.cgi?id=425049
User calberto.cortez at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=425049#c1
--- Comment #1 from Carlos Alberto Cortez <calberto.cortez at gmail.com>  2008-09-10 07:27:06 MDT ---
It seems you are using the 2.0 branch or the 2.0 preview packages. Is that
true?
Also, since you didn't attach any sample, I tried the next one, which worked
just fine:
using System;
using System.Windows.Forms;
public class test
{
        static void Main ()
        {
                Form f = new Form ();
                ListView lv = new ListView ();
                for (int i = 0; i < 20; i++)
                        lv.Items.Add ("Item " + i);
                lv.EnsureVisible (16);
                lv.Parent = f;
                f.Load += delegate { lv.EnsureVisible (16); };
                Application.Run (f);
        }
}
So, I think we need you to cook a simple but precise sample, because I already
tried different paths and failed to reproduce the error.
-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
    
    
More information about the mono-bugs
mailing list