First I've added microsoft.public.dotnet.framework.windowsforms.con trols
this to thread because it's not a C# issue.
What exactly are you seeing and what exactly are the specs of your this new
PC? I have run your code below and it was lightning fast (Athlon 2600 /
Radeon 9700 Pro) for 20, 50 even 1000 items.
Richard
--
C#, .NET and Complex Adaptive Systems:
http://blogs.geekdojo.net/Richard
"C# Learner" <csharp@learner.here> wrote in message
news:OgfJPry$DHA.3500@tk2msftngp13.phx.gbl...[color=blue]
> Has anyone else noticed ListView's unbearable flickering?
>
> I have a project containing a list-view with the following:
> - View: Details
> - Columns: 5
>
> The following code causes the list-view to flicker:
>
> private void TestListView()
> {
> const int Num = 20;
> const string Text = "Test";
>
> listView.BeginUpdate();
>
> listView.Items.Clear();
>
> ListViewItem[] items = new ListViewItem[Num];
> for (int i = 0; i < items.Length; ++i) {
> ListViewItem item = new ListViewItem(Text);
> item.SubItems.Add(Text);
>
> items[i] = item;
> }
> listView.Items.AddRange(items);
>
> listView.EndUpdate();
> }
>
> It looks like .NET let me down again; I might have to use another
> framework for the project due to this.[/color]