T
Troy Hilbert
Here's the deal.
I've got a class which is the root of an object hierarchy. Within this
class I create a private member variable of type Form. In the form class, I
have created a public LoadFile method that reads a text file (960 KB),
creates an array of ListViewItems(~33,000) based on the file and the I add
those items to the ListView via the AddRange method.
I instantiate the form from the root class, no problem.
I call the LoadFile method, although it measures out to ~1.5 seconds, still
no problem (I execute this method from the root class as a new thread, btw)
Back in the root class, I call Form.Show(), big problem. It takes 25
seconds to simply display the form!??!?!!!!? This HAS to do with the
ListView.
Anyone have a tip or suggestion as to how to improve the display speed of
this form?
Best
Troy
I've got a class which is the root of an object hierarchy. Within this
class I create a private member variable of type Form. In the form class, I
have created a public LoadFile method that reads a text file (960 KB),
creates an array of ListViewItems(~33,000) based on the file and the I add
those items to the ListView via the AddRange method.
I instantiate the form from the root class, no problem.
I call the LoadFile method, although it measures out to ~1.5 seconds, still
no problem (I execute this method from the root class as a new thread, btw)
Back in the root class, I call Form.Show(), big problem. It takes 25
seconds to simply display the form!??!?!!!!? This HAS to do with the
ListView.
Anyone have a tip or suggestion as to how to improve the display speed of
this form?
Best
Troy