Hello,
I'm using scrollerframe, but I have a design problem. When I load the listView that is AttachedTo I see it first White and later the color i have chosen.
I made a gif to make it easier understand it.
What shall I do to don't let this happend?
Thanks in advance.

|
private void button1_Click(object sender, EventArgs e)
{
listView1.Items.Clear();
listView1.BeginUpdate();
for (int i = 0; i < 100; i++)
{
listView1.Items.Add("First" + i);
}
listView1.EndUpdate();
} |
|
this.panel1.Controls.Add(this.listView1);
scrollersFrame1.AttachedTo = listView1;
private void button1_Click(object sender, EventArgs e)
{
listView1.Items.Clear();
listView1.BeginUpdate();
for (int i = 0; i < 100; i++)
{
listView1.Items.Add("First" + i);
}
listView1.EndUpdate();
}
|
|
listView1.BeginUpdate();
listView1.Items.Clear();
for (int i = 0; i < 100; i++)
{
listView1.Items.Add("Second" + i);
}
listView1.EndUpdate(); |

|
this.panel2.SuspendLayout();
this.panel2.Controls.Clear();
height = 0;
for (int i = 0; i < 3; i++)
{
UserControl1 con = new UserControl1();
con.Location = new Point(location.X, location.Y + height);
this.panel2.Controls.Add(con);
height = con.Height;
}
this.panel2.ResumeLayout(true); |