Advertisement

02.06.2008 at 11:01AM PST, ID: 23142271
[x]
Attachment Details

Slow loading of a ListView on first Display - C# VS2008

Asked by fbk2000 in Windows Forms for .Net, C# Programming Language, Microsoft Visual C#.Net

Tags: Microsoft, C#

Using VS2008. C#

I have a form with a ListView on it.

I create the form, and then load around 30,000 items into the listview from the database.  

The loading takes less than a second, but the first time I call Show(),  on the form, it takes around 5 seconds for the form to come up.  The next time do a Show(), it comes up immediately.  

What can I do, if anything, during the initialization phase to make it ALWAYS come up in less than a second?  Is there some way to pre-load the graphics or run the show() invisibly?  Start Free Trial
[+][-]02.07.2008 at 05:45AM PST, ID: 20840620

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.07.2008 at 05:54AM PST, ID: 20840686

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.07.2008 at 08:20AM PST, ID: 20842087

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Windows Forms for .Net, C# Programming Language, Microsoft Visual C#.Net
Tags: Microsoft, C#
Sign Up Now!
Solution Provided By: FernandoSoto
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.07.2008 at 08:53AM PST, ID: 20842454

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628