https://bugzilla.novell.com/show_bug.cgi?id=425049

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=425049#c3





--- Comment #3 from John Mortlock <[EMAIL PROTECTED]>  2008-09-10 17:58:25 MDT 
---
I am using the 2.0 preview, although i am in the process of compiling the svn
head code.

Yes the problem is due to when the BeginUpdate and the EndUpdate is called.
Changing the example to what is below causes the error to occur.
MS .NET works in this case.


using System;
using System.Windows.Forms;

public class test
{
        static void Main ()
        {
                Form f = new Form ();

                ListView lv = new ListView ();
                lv.BeginUpdate();
                for (int i = 0; i < 20; i++)
                        lv.Items.Add ("Item " + i);
                lv.EnsureVisible (16);
                lv.EndUpdate();

                lv.Parent = f;
                f.Load += delegate { lv.EnsureVisible (16); };

                Application.Run (f);
        }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to